- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 145 for Britton (0.03 sec)
-
src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java
void testWriteSetupWireFormat() { trans2FindFirst2 = new Trans2FindFirst2(mockConfig, "\\test", "*.*", 0x16, 10, 1024); byte[] buffer = new byte[10]; int written = trans2FindFirst2.writeSetupWireFormat(buffer, 0); assertEquals(2, written); assertEquals((byte) Trans2FindFirst2.TRANS2_FIND_FIRST2, buffer[0]); assertEquals((byte) 0x00, buffer[1]); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java
assertEquals(0x00, buffer[4]); assertEquals(0x00, buffer[5]); // Check that filename is written correctly (starting at offset 6) // The filename should be null-terminated Unicode string assertTrue(written > 6); // Verify the total bytes written is reasonable assertTrue(written > TEST_FILENAME.length()); } @ParameterizedTest
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java
assertEquals(0x00, SMBUtil.readInt2(buffer, 10)); // Verify filename String actualFilename = readString(buffer, 12, written - 12); assertEquals(TEST_FILENAME, actualFilename); // Verify total bytes written assertTrue(written >= 12 + TEST_FILENAME.length()); } @Test void testWriteDataWireFormat() { // Test data wire format writing (should return 0)
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java
int written = echoRequest.writeBytesWireFormat(minBuffer, 0); assertEquals(4, written); assertEquals(4, SMBUtil.readInt2(minBuffer, 0)); // Large buffer byte[] largeBuffer = new byte[10000]; written = echoRequest.writeBytesWireFormat(largeBuffer, 5000); assertEquals(4, written);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionRequestPacketTest.java
byte[] buffer = new byte[256]; int written = writePacket.writeTrailerWireFormat(buffer, 0); ByteArrayInputStream bais = new ByteArrayInputStream(buffer, 0, written); SessionRequestPacket readPacket = new SessionRequestPacket(mockConfig); readPacket.length = written; int bytesRead = readPacket.readTrailerWireFormat(bais, buffer, 0);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
void testWriteBytesWireFormat() { byte[] buffer = new byte[256]; int offset = 64; // Start at offset to test proper indexing int written = request.writeBytesWireFormat(buffer, offset); // Verify bytes written assertEquals(24, written); // Verify structure size (should be 24) assertEquals(24, SMBUtil.readInt2(buffer, offset));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java
void testWriteBytesWireFormat() { byte[] buffer = new byte[256]; int offset = 64; // Start at offset to test proper indexing int written = request.writeBytesWireFormat(buffer, offset); // Verify bytes written assertEquals(24, written); // Verify structure size (should be 24) assertEquals(24, SMBUtil.readInt2(buffer, offset));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java
byte[] minBuffer = new byte[2]; int written = trans2QueryFSInfo.writeSetupWireFormat(minBuffer, 0); assertEquals(2, written); // Test with exact parameter size byte[] paramBuffer = new byte[2]; written = trans2QueryFSInfo.writeParametersWireFormat(paramBuffer, 0); assertEquals(2, written); // Test with zero-length data buffer
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.9K bytes - Viewed (0) -
src/main/java/jcifs/util/Encdec.java
* * @param s the short value to encode * @param dst the destination byte array * @param di the starting index in the destination array * @return the number of bytes written (2) */ public static int enc_uint16be(final short s, final byte[] dst, int di) { dst[di] = (byte) (s >> 8 & 0xFF); di++; dst[di] = (byte) (s & 0xFF); return 2; }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java
} int written = trans2SetFileInfo.writeDataWireFormat(buffer, 0); // Should report 26 bytes written (20 from encode + 6 increment) assertEquals(26, written); // Check that padding bytes are zeros // The implementation writes 8 bytes with writeInt8 but only increments by 6 // This means bytes 20-27 will be zero (8 bytes written by writeInt8)Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.8K bytes - Viewed (0)