Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 228 for readInt2 (0.06 sec)

  1. src/main/java/jcifs/internal/smb1/com/SmbComWriteResponse.java

            return 0;
        }
    
        @Override
        protected int readParameterWordsWireFormat(final byte[] buffer, final int bufferIndex) {
            this.count = SMBUtil.readInt2(buffer, bufferIndex) & 0xFFFFL;
            return 8;
        }
    
        @Override
        protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) {
            return 0;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndXResponse.java

            final int start = bufferIndex;
            isLoggedInAsGuest = ((buffer[bufferIndex] & 0x01) == 0x01) == true;
            bufferIndex += 2;
            if (extendedSecurity) {
                final int blobLength = readInt2(buffer, bufferIndex);
                bufferIndex += 2;
                blob = new byte[blobLength];
            }
            return bufferIndex - start;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakNotification.java

            // CurrentLeaseState (4 bytes)
            this.currentLeaseState = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
            // NewLeaseState (4 bytes)
            this.newLeaseState = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
            // BreakReason (4 bytes)
            this.breakReason = 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
    - 4.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/dtyp/ACE.java

            this.allow = buf[bi] == (byte) 0x00;
            bi++;
            this.flags = buf[bi++] & 0xFF;
            final int size = SMBUtil.readInt2(buf, bi);
            bi += 2;
            this.access = SMBUtil.readInt4(buf, bi);
            bi += 4;
            this.sid = new SID(buf, bi);
            return size;
        }
    
        void appendCol(final StringBuffer sb, final String str, final int width) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

            ServerMessageBlock.writeInt2(0x1234, buffer, 0);
            assertEquals(0x1234, ServerMessageBlock.readInt2(buffer, 0));
        }
    
        @Test
        void testInt4ReadWrite() {
            byte[] buffer = new byte[4];
            ServerMessageBlock.writeInt4(0x12345678, buffer, 0);
            assertEquals(0x12345678, ServerMessageBlock.readInt4(buffer, 0));
        }
    
        @Test
        void testInt8ReadWrite() {
            byte[] buffer = new byte[8];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  6. docs/smb3-features/01-smb3-lease-design.md

            System.arraycopy(buffer, offset, keyBytes, 0, 16);
            this.leaseKey = new Smb2LeaseKey(keyBytes);
            
            this.leaseState = readInt4(buffer, offset + 16);
            this.leaseFlags = readInt4(buffer, offset + 20);
            this.leaseDuration = readInt8(buffer, offset + 24);
            
            if (length >= 52) {  // V2 lease
                byte[] parentKeyBytes = new byte[16];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 22K bytes
    - Viewed (0)
  7. 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)
  8. src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java

                // Remaining bytes stay zero-filled
            }
        }
    
        private static InetAddress parseSockaddr(byte[] data, int offset) {
            try {
                int family = SMBUtil.readInt2(data, offset);
                if (family == 2) { // AF_INET
                    byte[] addr = new byte[4];
                    System.arraycopy(data, offset + 4, addr, 0, 4);
                    return InetAddress.getByAddress(addr);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 9.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/smb1/smb1/SmbComNegotiateResponseTest.java

            assertEquals(65536, serverData.maxRawSize);
            assertEquals(123456789, serverData.sessionKey);
            assertEquals(SmbConstants.CAP_UNICODE | SmbConstants.CAP_NT_SMBS, serverData.capabilities);
            // readInt2 returns unsigned value, so -480 becomes 65056
            assertEquals(65056, serverData.serverTimeZone);
            assertEquals(8, serverData.encryptionKeyLength);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
Back to top