Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 230 for readInt8 (0.07 sec)

  1. src/main/java/jcifs/internal/smb2/nego/CompressionNegotiateContext.java

                throw new SMBProtocolDecodingException("Invalid compression context length: " + len);
            }
    
            int start = bufferIndex;
    
            // Read compression count
            int compressionCount = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
    
            // Validate compression count
            if (compressionCount < 0 || compressionCount > 16) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponse.java

            final int inputOffset = SMBUtil.readInt4(buffer, bufferIndex) + getHeaderStart();
            bufferIndex += 4;
    
            final int inputCount = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
            final int outputOffset = SMBUtil.readInt4(buffer, bufferIndex) + getHeaderStart();
            bufferIndex += 4;
    
            final int outputCount = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

            // Verify all fields in the buffer
            assertEquals(33, SMBUtil.readInt2(buffer, 64)); // Structure size
            assertEquals((byte) 0x02, buffer[66]); // Info type
            assertEquals((byte) 0x08, buffer[67]); // File info class
            assertEquals(64, SMBUtil.readInt4(buffer, 68)); // Buffer length
            assertEquals(0xABCDEF00, SMBUtil.readInt4(buffer, 76)); // Additional information
    
            // Verify file ID
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/com/SmbComQueryInformationResponse.java

            if (this.wordCount == 0) {
                return 0;
            }
            this.fileAttributes = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.lastWriteTime = SMBUtil.readUTime(buffer, bufferIndex);
            bufferIndex += 4;
            this.fileSize = SMBUtil.readInt4(buffer, bufferIndex);
            return 20;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponse.java

            final int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
    
            if (structureSize != 9) {
                throw new SMBProtocolDecodingException("Expected structureSize = 9");
            }
    
            final int bufferOffset = SMBUtil.readInt2(buffer, bufferIndex + 2) + getHeaderStart();
            bufferIndex += 4;
            final int bufferLength = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  6. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  7. 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)
  8. 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;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java

            assertEquals(100, SMBUtil.readInt4(dst, 3));
    
            // Verify total data count (4 bytes at position 7)
            assertEquals(200, SMBUtil.readInt4(dst, 7));
    
            // Verify max parameter count (4 bytes at position 11)
            assertEquals(1024, SMBUtil.readInt4(dst, 11));
    
            // Verify max data count (4 bytes at position 15)
            assertEquals(2048, SMBUtil.readInt4(dst, 15));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java

            // Verify structure size (should be 24)
            assertEquals(24, SMBUtil.readInt2(buffer, offset));
    
            // Verify Reserved1 (2 bytes at offset+2, should be 0)
            assertEquals(0, SMBUtil.readInt2(buffer, offset + 2));
    
            // Verify Reserved2 (4 bytes at offset+4, should be 0)
            assertEquals(0, SMBUtil.readInt4(buffer, offset + 4));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top