- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 231 for readInt2 (0.11 sec)
-
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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/LeaseV2CreateContextResponse.java
this.leaseKey = new Smb2LeaseKey(keyBytes); bufferIndex += 16; this.leaseState = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; this.leaseFlags = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; // LeaseDuration (8 bytes) - reserved, skip bufferIndex += 8;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 3.6K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComQueryInformationResponse.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java
assertEquals(4, written, "Should report 4 bytes written"); // StructureSize (2 bytes, LE) == 4 assertEquals(4, SMBUtil.readInt2(buf, offset)); // Reserved (2 bytes, LE) == 0 assertEquals(0, SMBUtil.readInt2(buf, offset + 2)); } @Test @DisplayName("writeBytesWireFormat throws when buffer too small") void writeBytesWireFormat_throwsIfInsufficientSpace() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComWriteAndXResponse.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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 1.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lock/Smb2LockResponse.java
*/ @Override protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) throws SMBProtocolDecodingException { final int structureSize = SMBUtil.readInt2(buffer, bufferIndex); if (structureSize != 4) { throw new SMBProtocolDecodingException("Expected structureSize = 4"); } return 4; }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponse.java
*/ @Override protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) throws SMBProtocolDecodingException { final int structureSize = SMBUtil.readInt2(buffer, bufferIndex); if (structureSize != 4) { throw new SMBProtocolDecodingException("Structure size != 4"); } return 4; }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/io/Smb2ReadResponse.java
} final short dataOffset = buffer[bufferIndex + 2]; bufferIndex += 4; this.dataLength = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; this.dataRemaining = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; bufferIndex += 4; // Reserved2 final int dataStart = getHeaderStart() + dataOffset;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.4K bytes - Viewed (0)