- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 226 for readInt2 (0.06 seconds)
-
src/main/java/jcifs/smb1/netbios/SessionRetargetResponsePacket.java
throw new IOException("unexpected EOF reading netbios retarget session response"); } final int addr = readInt4(buffer, bufferIndex); bufferIndex += 4; retargetAddress = new NbtAddress(null, addr, false, NbtAddress.B_NODE); int retargetPort = readInt2(buffer, bufferIndex); return length; }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 1.8K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbComWriteResponse.java
int writeBytesWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override int readParameterWordsWireFormat(final byte[] buffer, final int bufferIndex) { count = readInt2(buffer, bufferIndex) & 0xFFFFL; return 8; } @Override int readBytesWireFormat(final byte[] buffer, final int bufferIndex) { return 0; } @Override
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 1.6K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponse.java
final SmbQueryFileStandardInfo info = new SmbQueryFileStandardInfo(); info.allocationSize = readInt8(buffer, bufferIndex); bufferIndex += 8; info.endOfFile = readInt8(buffer, bufferIndex); bufferIndex += 8; info.numberOfLinks = readInt4(buffer, bufferIndex); bufferIndex += 4; info.deletePending = (buffer[bufferIndex] & 0xFF) > 0; bufferIndex++;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 5.6K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponse.java
bufferIndex += 4; // skip idFileSystem info.sectPerAlloc = readInt4(buffer, bufferIndex); bufferIndex += 4; info.alloc = readInt4(buffer, bufferIndex); bufferIndex += 4; info.free = readInt4(buffer, bufferIndex); bufferIndex += 4; info.bytesPerSect = readInt2(buffer, bufferIndex); bufferIndex += 4; this.info = info;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 5.1K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndXResponse.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 2.9K bytes - Click Count (0) -
src/test/java/jcifs/netbios/SessionServicePacketTest.java
} @Test @DisplayName("readInt2 should correctly read 16-bit integer") void testReadInt2() { byte[] src = { (byte) 0x12, (byte) 0x34, (byte) 0x56 }; int result = SessionServicePacket.readInt2(src, 0); assertEquals(0x1234, result); } @Test @DisplayName("readInt2 with offset should read from correct position")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.5K bytes - Click Count (0) -
src/main/java/jcifs/internal/util/SMBUtil.java
* @param srcIndex the starting index in the source array * @return the 64-bit integer value */ public static long readInt8(final byte[] src, final int srcIndex) { return (readInt4(src, srcIndex) & 0xFFFFFFFFL) + ((long) readInt4(src, srcIndex + 4) << 32); } /** * Writes a 64-bit integer value to a byte array in little-endian format * @param val the value to writeCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8K bytes - Click Count (0) -
docs/smb3-features/01-smb3-lease-design.md
System.arraycopy(buffer, offset, keyBytes, 0, 16); this.leaseKey = new Smb2LeaseKey(keyBytes); this.leaseState = readInt4(buffer, offset + 16); this.leaseFlags = readInt4(buffer, offset + 20); this.leaseDuration = readInt8(buffer, offset + 24); if (length >= 52) { // V2 lease byte[] parentKeyBytes = new byte[16];
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 22K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java
assertEquals(65536, serverData.maxRawSize); assertEquals(123456789, serverData.sessionKey); assertEquals(SmbConstants.CAP_UNICODE | SmbConstants.CAP_NT_SMBS, serverData.capabilities); // readInt2 returns unsigned value, so -480 becomes 65056 assertEquals(65056, serverData.serverTimeZone); assertEquals(8, serverData.encryptionKeyLength); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
// Verify token length assertEquals(TEST_TOKEN.length, SMBUtil.readInt2(buffer, bodyOffset + 14)); // Verify previous session ID assertEquals(TEST_PREVIOUS_SESSION_ID, SMBUtil.readInt8(buffer, bodyOffset + 16)); // Verify token content at the security buffer offset int securityBufferOffset = SMBUtil.readInt2(buffer, bodyOffset + 12);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 21.2K bytes - Click Count (0)