- Sort Score
- Result 10 results
- Languages All
Results 271 - 280 of 1,640 for writer (0.05 sec)
-
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java
// Fill buffer with non-zero values to ensure padding writes zeros for (int i = 0; i < buffer.length; i++) { buffer[i] = (byte) 0xFF; } int written = trans2SetFileInfo.writeDataWireFormat(buffer, 0); // Should report 26 bytes written (20 from encode + 6 increment) assertEquals(26, written); // Check that padding bytes are zerosRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/LogStreamTest.java
assertTrue(output.contains("true")); // Test close logStream.close(); // After close, the stream should not accept more writes // but PrintStream doesn't throw exceptions on write after close } @Test void testConcurrentAccess() throws InterruptedException { // Test thread safety of getInstance LogStream.setInstance(testStream);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/Hexdump.java
/** * Converts a long value to hexadecimal characters and writes them to the specified character array. * * @param val the long value to convert to hexadecimal characters * @param dst the destination character array to write the hex digits into * @param dstIndex the starting index in the destination array * @param size the number of hex digits to write (will be left-padded with zeros) */Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.8K bytes - Viewed (0) -
src/bytes/buffer_test.go
var b Buffer b.Write(buf[0:1]) for i := 0; i < 5<<10; i++ { b.Write(buf) b.Read(buf) } } } // Check that we don't compact too often. From Issue 5154. func BenchmarkBufferFullSmallReads(b *testing.B) { buf := make([]byte, 1024) for i := 0; i < b.N; i++ { var b Buffer b.Write(buf) for b.Len()+20 < b.Cap() { b.Write(buf[:10]) }Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon May 19 16:13:04 UTC 2025 - 18.6K bytes - Viewed (0) -
guava/src/com/google/common/io/ByteStreams.java
} @Override public void write(int b) { try { output.write(b); } catch (IOException impossible) { throw new AssertionError(impossible); } } @Override public void write(byte[] b) { try { output.write(b); } catch (IOException impossible) { throw new AssertionError(impossible);Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 31.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java
@ValueSource(ints = { 0, 1, 5 }) @DisplayName("writeBytesWireFormat writes StructureSize=4 and Reserved=0 at given offset") void writeBytesWireFormat_writesExpectedValuesAtOffset(int offset) { // Arrange Smb2LogoffRequest req = newRequest(); byte[] buf = new byte[offset + 8]; // extra space for safety // Act int written = req.writeBytesWireFormat(buf, offset);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
assertThrows(NullPointerException.class, () -> { new Smb2NegotiateRequest(mockConfig, 0); }); } @Test @DisplayName("Should properly align buffer writes") void testBufferAlignment() { // Given when(mockConfig.getMaximumVersion()).thenReturn(DialectVersion.SMB311); request = new Smb2NegotiateRequest(mockConfig, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/ServerMessageBlock.java
*/ /** * Writes the parameter words portion of the SMB message to the wire format. * * @param dst the destination buffer * @param dstIndex the starting offset in the buffer * @return the number of bytes written */ protected abstract int writeParameterWordsWireFormat(byte[] dst, int dstIndex); /**Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 38.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/SessionServicePacket.java
return buffer[bufferIndex] & 0xFF; } int type, length; /** * Writes the packet to the specified byte array in wire format. * * @param dst the destination byte array to write to * @param dstIndex the starting index in the destination array * @return the number of bytes written */ public int writeWireFormat(final byte[] dst, final int dstIndex) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java
when(mockConfig.getOemEncoding()).thenReturn("windows-1252"); cmd = new SmbComQueryInformation(mockConfig, "testfile.txt"); } @Test @DisplayName("writeBytesWireFormat writes the command byte followed by the null terminated string") void testWriteBytesWireFormatHappy() throws UnsupportedEncodingException { byte[] buffer = new byte[50]; int used = cmd.writeBytesWireFormat(buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0)