- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 232 for readInt2 (0.12 sec)
-
src/main/java/jcifs/internal/smb1/com/LockingAndXRange.java
this.pid = SMBUtil.readInt2(buffer, bufferIndex); final int boHigh = SMBUtil.readInt4(buffer, bufferIndex + 4); final int boLow = SMBUtil.readInt4(buffer, bufferIndex + 8); this.byteOffset = boHigh << 32 | boLow; final int lHigh = SMBUtil.readInt4(buffer, bufferIndex + 12); final int lLow = SMBUtil.readInt4(buffer, bufferIndex + 16);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.1K bytes - Viewed (0) -
src/main/java/jcifs/netbios/SessionRetargetResponsePacket.java
throw new IOException("unexpected EOF reading netbios retarget session response"); } final int addr = readInt4(buffer, bufferIndex); bufferIndex += 4; new NbtAddress(null, addr, false, NbtAddress.B_NODE); readInt2(buffer, bufferIndex); return this.length; }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 1.7K bytes - Viewed (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;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java
// Then assertEquals(6, bytesWritten); assertEquals(fid, SMBUtil.readInt2(dst, 0)); // lastWriteTime is not written if digest is null, so the remaining bytes should be zero assertEquals(0, SMBUtil.readInt4(dst, 2)); } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java
} offset += descrBytes.length; // 3. Level (2 bytes) assertEquals(0x0001, SMBUtil.readInt2(dst, offset)); offset += 2; // 4. MaxDataCount (2 bytes) int maxDataCount = SMBUtil.readInt2(dst, offset); assertTrue(maxDataCount > 0); offset += 2; // Verify total bytes writtenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/SessionServicePacket.java
dst[dstIndex++] = (byte) (val >> 8 & 0xFF); dst[dstIndex] = (byte) (val & 0xFF); } static int readInt2(final byte[] src, final int srcIndex) { return ((src[srcIndex] & 0xFF) << 8) + (src[srcIndex + 1] & 0xFF); } static int readInt4(final byte[] src, final int srcIndex) { return ((src[srcIndex] & 0xFF) << 24) + ((src[srcIndex + 1] & 0xFF) << 16) + ((src[srcIndex + 2] & 0xFF) << 8)
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java
assertEquals(0, SMBUtil.readInt2(buffer, 72)); // Verify input buffer length (should be 0 when no input buffer) assertEquals(0, SMBUtil.readInt4(buffer, 76)); // Verify additional information assertEquals(0x12345678, SMBUtil.readInt4(buffer, 80)); // Verify query flags assertEquals(0xABCDEF00, SMBUtil.readInt4(buffer, 84));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/fscc/SmbInfoAllocation.java
bufferIndex += 4; // skip idFileSystem this.sectPerAlloc = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; this.alloc = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; this.free = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; this.bytesPerSect = SMBUtil.readInt2(buffer, bufferIndex); bufferIndex += 4;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComQueryInformationResponse.java
if (wordCount == 0) { return 0; } fileAttributes = readInt2(buffer, bufferIndex); bufferIndex += 2; lastWriteTime = readUTime(buffer, bufferIndex); bufferIndex += 4; fileSize = readInt4(buffer, bufferIndex); return 20; } @Override int readBytesWireFormat(final byte[] buffer, final int bufferIndex) {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 2.7K bytes - Viewed (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++;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.6K bytes - Viewed (0)