- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 184 for readInt2 (0.83 sec)
-
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/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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/io/Smb2WriteResponse.java
final int structureSize = SMBUtil.readInt2(buffer, bufferIndex); if (structureSize != 17) { throw new SMBProtocolDecodingException("Expected structureSize = 17"); } bufferIndex += 4; this.count = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; this.remaining = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.8K bytes - Viewed (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
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 1.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponse.java
final int start = bufferIndex; final int structureSize = SMBUtil.readInt2(buffer, bufferIndex); if (structureSize != 16) { throw new SMBProtocolDecodingException("Structure size is not 16"); } this.shareType = buffer[bufferIndex + 2]; bufferIndex += 4; this.shareFlags = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNtTransactionTest.java
assertEquals(smbComNtTransaction.dataOffset, SmbComTransaction.readInt4(dst, 31), "dataOffset should be written correctly"); assertEquals(smbComNtTransaction.setupCount, dst[35], "setupCount should be written correctly"); assertEquals(smbComNtTransaction.function, SmbComTransaction.readInt2(dst, 36), "function should be written correctly"); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXResponse.java
this.isLoggedInAsGuest = ((buffer[bufferIndex] & 0x01) == 0x01) == true; bufferIndex += 2; if (this.isExtendedSecurity()) { final int blobLength = SMBUtil.readInt2(buffer, bufferIndex); bufferIndex += 2; this.blob = new byte[blobLength]; } return bufferIndex - start; } @OverrideRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.7K bytes - Viewed (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 writeRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2EchoResponse.java
*/ @Override protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) throws SMBProtocolDecodingException { final int start = bufferIndex; final int structureSize = SMBUtil.readInt2(buffer, bufferIndex); if (structureSize != 4) { throw new SMBProtocolDecodingException("Expected structureSize = 4"); } return bufferIndex - start; }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.1K bytes - Viewed (0)