Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 228 for readInt2 (0.04 sec)

  1. 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)
  2. 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)
  3. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

                /*
                 * these fields are common to all andx commands
                 * so let's populate them here
                 */
    
                andxCommand = buffer[bufferIndex];
                andxOffset = readInt2(buffer, bufferIndex + 2);
    
                if (andxOffset == 0) { /* Snap server workaround */
                    andxCommand = (byte) 0xFF;
                }
    
                /*
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  8. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakResponse.java

            this.structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if (this.structureSize != 36) {
                throw new SMBProtocolDecodingException("Invalid lease break response structure size: " + this.structureSize);
            }
            bufferIndex += 2;
    
            // Reserved (2 bytes)
            bufferIndex += 2;
    
            // Flags (4 bytes)
            this.flags = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

                 * these fields are common to all andx commands
                 * so let's populate them here
                 */
    
                this.andxCommand = buffer[bufferIndex];
                this.andxOffset = SMBUtil.readInt2(buffer, bufferIndex + 2);
    
                if (this.andxOffset == 0) { /* Snap server workaround */
                    this.andxCommand = (byte) 0xFF;
                }
    
                /*
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
Back to top