- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,114 for 0bytes (0.45 sec)
-
docs/smb3-features/02-persistent-handles-design.md
} public HandleGuid(byte[] bytes) { if (bytes.length != 16) { throw new IllegalArgumentException("GUID must be 16 bytes"); } ByteBuffer bb = ByteBuffer.wrap(bytes); long mostSig = bb.getLong(); long leastSig = bb.getLong(); this.guid = new UUID(mostSig, leastSig); } public byte[] toBytes() { ByteBuffer bb = ByteBuffer.allocate(16);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 31.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java
* The header format is: * - Byte 0: Message type (0x00 for SESSION_MESSAGE) * - Byte 1: High bit of 17-bit length field * - Bytes 2-3: Lower 16 bits of length field */ private static byte[] messageHeader(int length) { byte[] h = new byte[4]; h[0] = (byte) SessionServicePacket.SESSION_MESSAGE; h[1] = (byte) ((length >> 16) & 0x01); h[2] = (byte) ((length >> 8) & 0xFF);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/Type2MessageTest.java
byte[] testContext = new byte[] { (byte) 0x11, (byte) 0x22, (byte) 0x33, (byte) 0x44, (byte) 0x55, (byte) 0x66, (byte) 0x77, (byte) 0x88 }; message.setContext(testContext); // When byte[] bytes = message.toByteArray(); // Then assertNotNull(bytes); // Verify challenge
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 38.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/HexdumpTest.java
// Test with negative byte values byte[] data2 = { (byte) 0xFF, (byte) 0xFE, (byte) 0x80, 0x7F }; assertEquals("FF", Hexdump.toHexString(data2, 0, 2)); // 2 chars = 1 byte assertEquals("FFF", Hexdump.toHexString(data2, 0, 3)); // 3 chars = 1.5 bytes (rounds up to 2) assertEquals("FFFE", Hexdump.toHexString(data2, 0, 4)); // 4 chars = 2 bytes
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java
byte[] buffer = new byte[50]; int bufferIndex = 0; // SMB3 capabilities int testCapabilities = 0x0000002F; // DFS, LEASING, LARGE_MTU, MULTI_CHANNEL, PERSISTENT_HANDLES, DIRECTORY_LEASING // Random but realistic GUID byte[] testGuid = { (byte) 0x01, (byte) 0x23, (byte) 0x45, (byte) 0x67, (byte) 0x89, (byte) 0xAB, (byte) 0xCD, (byte) 0xEF,
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/util/StringsTest.java
@Test @DisplayName("fromUNIBytes should decode UTF-16LE bytes to string") void testFromUNIBytes() { // Given byte[] bytes = TEST_STRING.getBytes(StandardCharsets.UTF_16LE); // When String result = Strings.fromUNIBytes(bytes, 0, bytes.length); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
schema/field_test.go
{Name: "TIME", DBName: "ftime", BindNames: []string{"TIME"}, DataType: schema.Time, Creatable: true, Updatable: true, Readable: true, Tag: `gorm:"column:ftime"`}, {Name: "BYTES", DBName: "fbytes", BindNames: []string{"BYTES"}, DataType: schema.Bytes, Creatable: true, Updatable: true, Readable: true, Tag: `gorm:"column:fbytes"`}, } for _, f := range fields { checkSchemaField(t, alias, f, func(f *schema.Field) {}) }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Sat Feb 19 09:02:53 UTC 2022 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
byte[] buffer = new byte[256]; Arrays.fill(buffer, (byte) 0xCC); // Fill with pattern to detect unwritten areas int written = request.writeBytesWireFormat(buffer, 0); // Verify structure according to SMB2 FLUSH specification // Structure Size (2 bytes) - should be 24 assertEquals(24, SMBUtil.readInt2(buffer, 0));
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/main/java/jcifs/spnego/SpnegoToken.java
* @param mechanismListMIC the mechanism list MIC bytes */ public void setMechanismListMIC(final byte[] mechanismListMIC) { this.mechanismListMIC = mechanismListMIC; } /** * Encodes this SPNEGO token to a byte array * @return the encoded token bytes */ public abstract byte[] toByteArray(); /** * Parses the provided token bytes to populate this SPNEGO token
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java
// Session ID (8 bytes) - little-endian buffer[index++] = (byte) (testSessionId & 0xFF); buffer[index++] = (byte) ((testSessionId >> 8) & 0xFF); buffer[index++] = (byte) ((testSessionId >> 16) & 0xFF); buffer[index++] = (byte) ((testSessionId >> 24) & 0xFF); buffer[index++] = (byte) ((testSessionId >> 32) & 0xFF);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0)