- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 333 for 0x08 (0.46 sec)
-
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
// Given byte[] buffer = new byte[60]; SMBUtil.writeInt2(60, buffer, 0); // Set multiple attribute flags int attributes = 0x01 | 0x02 | 0x04 | 0x10 | 0x20; // Multiple attributes SMBUtil.writeInt4(attributes, buffer, 56); // When response.readBytesWireFormat(buffer, 0); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java
// negative fid wraps around, lastWriteTime = 1000 -> 1 second -> int value 1 Arguments.of(-1, 1000L, new byte[] { (byte) 0xFF, (byte) 0xFF, 0x01, 0x00, 0x00, 0x00 })); } /** * When lastWriteTime is zero the encoded unsigned time must be all 1s. */ @Test @DisplayName("edge: writeParameterWordsWireFormat with lastWriteTime=0")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
int bytesWritten = request.writeBytesWireFormat(buffer, offset); // Then assertEquals(4, bytesWritten); // Expected wire format: [0x04, 0x00, 0x00, 0x00] byte[] expected = new byte[] { 0x04, 0x00, 0x00, 0x00 }; assertArrayEquals(expected, buffer); } @Test @DisplayName("Should always return 0 for readBytesWireFormat") void testReadBytesWireFormat() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java
// Given byte[] buffer = new byte[256]; // Write exact structure size value (4) buffer[0] = 0x04; buffer[1] = 0x00; buffer[2] = 0x00; buffer[3] = 0x00; // When int bytesRead = response.readBytesWireFormat(buffer, 0); // Then assertEquals(4, bytesRead); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComCreateDirectoryTest.java
// Expected format: buffer format (0x04) + path string (null terminated) byte[] expected = new byte[directoryName.length() + 2]; expected[0] = 0x04; // Buffer format System.arraycopy(directoryName.getBytes(StandardCharsets.UTF_8), 0, expected, 1, directoryName.length()); expected[directoryName.length() + 1] = 0x00; // Null terminator byte[] dst = new byte[100];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
src/main/java/jcifs/netbios/SessionServicePacket.java
dst[dstIndex] = (byte) 0x01; } dstIndex++; writeInt2(this.length, dst, dstIndex); return HEADER_LENGTH; } int readHeaderWireFormat(final InputStream in, final byte[] buffer, int bufferIndex) { this.type = buffer[bufferIndex] & 0xFF; bufferIndex++; this.length = ((buffer[bufferIndex] & 0x01) << 16) + readInt2(buffer, bufferIndex + 1);
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/fscc/FileInformationTest.java
void testFileInformationConstantsMatchProtocol() { // These values are defined in MS-FSCC specification assertEquals(0x04, FileInformation.FILE_BASIC_INFO); assertEquals(0x05, FileInformation.FILE_STANDARD_INFO); assertEquals(0x06, FileInformation.FILE_INTERNAL_INFO); assertEquals(10, FileInformation.FILE_RENAME_INFO); assertEquals(20, FileInformation.FILE_ENDOFFILE_INFO);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java
assertEquals((byte) 0x04, dst[4]); assertEquals((byte) 0x01, dst[5]); // resumeKey (4 bytes, LE) assertEquals((byte) 0xEF, dst[6]); assertEquals((byte) 0xCD, dst[7]); assertEquals((byte) 0xAB, dst[8]); assertEquals((byte) 0x89, dst[9]); // flags (2 bytes, LE) -> 0x0000 assertEquals((byte) 0x00, dst[10]);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.9K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosTicketTest.java
} @Test void testConstructorWithMalformedToken() { // Test that PACDecodingException is thrown for a malformed token byte[] malformedToken = new byte[] { 0x01, 0x02, 0x03 }; PACDecodingException e = assertThrows(PACDecodingException.class, () -> new KerberosTicket(malformedToken, (byte) 0, keys)); assertTrue(e.getMessage().startsWith("Malformed kerberos ticket")); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
guava/src/com/google/common/net/InetAddresses.java
return false; } byte[] bytes = ip.getAddress(); if ((bytes[8] | (byte) 0x03) != (byte) 0x03) { // Verify that high byte of the 64 bit identifier is zero, modulo // the U/L and G bits, with which we are not concerned. return false; } return (bytes[9] == (byte) 0x00) && (bytes[10] == (byte) 0x5e) && (bytes[11] == (byte) 0xfe); } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 47.4K bytes - Viewed (0)