Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 187 for readInt4 (0.17 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/main/java/jcifs/smb1/smb1/NtTransQuerySecurityDescResponse.java

            return 0;
        }
    
        @Override
        int readParametersWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            length = readInt4(buffer, bufferIndex);
            return 4;
        }
    
        @Override
        int readDataWireFormat(final byte[] buffer, int bufferIndex, final int len) {
            final int start = bufferIndex;
    
            if (errorCode != 0) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  2. 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;
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb1/netbios/NameQueryResponse.java

                return 0;
            }
            final boolean groupName = ((src[srcIndex] & 0x80) == 0x80) == true;
            final int nodeType = (src[srcIndex] & 0x60) >> 5;
            srcIndex += 2;
            final int address = readInt4(src, srcIndex);
            if (address != 0) {
                addrEntry[addrIndex] = new NbtAddress(recordName, address, groupName, nodeType);
            } else {
                addrEntry[addrIndex] = null;
            }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 2K bytes
    - Click Count (0)
  4. src/main/java/jcifs/netbios/NameServicePacket.java

                srcIndex += this.recordName.readWireFormat(src, srcIndex);
            }
            this.recordType = readInt2(src, srcIndex);
            srcIndex += 2;
            this.recordClass = readInt2(src, srcIndex);
            srcIndex += 2;
            this.ttl = readInt4(src, srcIndex);
            srcIndex += 4;
            this.rDataLength = readInt2(src, srcIndex);
            srcIndex += 2;
    
            this.addrEntry = new NbtAddress[this.rDataLength / 6];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb1/netbios/NameServicePacket.java

            } else {
                srcIndex += recordName.readWireFormat(src, srcIndex);
            }
            recordType = readInt2(src, srcIndex);
            srcIndex += 2;
            recordClass = readInt2(src, srcIndex);
            srcIndex += 2;
            ttl = readInt4(src, srcIndex);
            srcIndex += 4;
            rDataLength = readInt2(src, srcIndex);
            srcIndex += 2;
    
            addrEntry = new NbtAddress[rDataLength / 6];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb1/smb1/NetShareEnumResponse.java

            final int start = bufferIndex;
    
            status = readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            converter = readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            numEntries = readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            totalAvailableEntries = readInt2(buffer, bufferIndex);
            bufferIndex += 2;
    
            return bufferIndex - start;
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  7. src/test/java/jcifs/netbios/SessionServicePacketTest.java

            int result = SessionServicePacket.readInt2(src, 2);
    
            assertEquals(0xABCD, result);
        }
    
        @Test
        @DisplayName("readInt4 should correctly read 32-bit integer")
        void testReadInt4() {
            byte[] src = { (byte) 0x12, (byte) 0x34, (byte) 0x56, (byte) 0x78 };
            int result = SessionServicePacket.readInt4(src, 0);
    
            assertEquals(0x12345678, result);
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.5K bytes
    - Click Count (0)
  8. src/main/java/jcifs/netbios/NameQueryResponse.java

                return 0;
            }
            final boolean groupName = ((src[srcIndex] & 0x80) == 0x80) == true;
            final int nodeType = (src[srcIndex] & 0x60) >> 5;
            srcIndex += 2;
            final int address = readInt4(src, srcIndex);
            if (address != 0) {
                this.addrEntry[this.addrIndex] = new NbtAddress(this.recordName, address, groupName, nodeType);
            } else {
                this.addrEntry[this.addrIndex] = null;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponse.java

            final SmbQueryFileStandardInfo info = new SmbQueryFileStandardInfo();
            info.allocationSize = readInt8(buffer, bufferIndex);
            bufferIndex += 8;
            info.endOfFile = readInt8(buffer, bufferIndex);
            bufferIndex += 8;
            info.numberOfLinks = readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            info.deletePending = (buffer[bufferIndex] & 0xFF) > 0;
            bufferIndex++;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  10. src/main/java/jcifs/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)
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 5.2K bytes
    - Click Count (0)
Back to Top