Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 230 for readInt8 (0.05 sec)

  1. src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java

            assertEquals(getField(cmd, "fid"), SMBUtil.readInt2(buffer, 0));
            assertEquals(getField(cmd, "typeOfLock"), buffer[2]);
            assertEquals(getField(cmd, "newOpLockLevel"), buffer[3]);
            assertEquals(getField(cmd, "timeout"), (long) SMBUtil.readInt4(buffer, 4));
            assertEquals(1, SMBUtil.readInt2(buffer, 8));
            assertEquals(1, SMBUtil.readInt2(buffer, 10));
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  2. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponse.java

            final int start = bufferIndex;
    
            this.capabilities = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
            System.arraycopy(buffer, bufferIndex, this.serverGuid, 0, 16);
            bufferIndex += 16;
    
            this.securityMode = SMBUtil.readInt2(buffer, bufferIndex);
            this.dialect = SMBUtil.readInt2(buffer, bufferIndex + 2);
            bufferIndex += 4;
    
            return bufferIndex - start;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java

            // Then
            assertEquals(6, bytesWritten);
            assertEquals(fid, SMBUtil.readInt2(dst, 0));
            // lastWriteTime is not written if digest is null, so the remaining bytes should be zero
            assertEquals(0, SMBUtil.readInt4(dst, 2));
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java

            int off = 0;
            assertEquals(65535, SMBUtil.readInt2(buf, off));
            off += 2;
            assertEquals(65535, SMBUtil.readInt2(buf, off));
            off += 2;
            assertEquals(0, SMBUtil.readInt2(buf, off));
            off += 2;
            assertEquals(0x12345678, SMBUtil.readInt4(buf, off));
            off += 4;
            assertEquals(blob.length, SMBUtil.readInt2(buf, off));
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  6. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  7. 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)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/info/Smb2QueryInfoResponse.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
    - 6.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbComQueryInformationResponse.java

            if (wordCount == 0) {
                return 0;
            }
            fileAttributes = readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            lastWriteTime = readUTime(buffer, bufferIndex);
            bufferIndex += 4;
            fileSize = readInt4(buffer, bufferIndex);
            return 20;
        }
    
        @Override
        int readBytesWireFormat(final byte[] buffer, final int bufferIndex) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java

            // Verify search attributes (masked with 0x37)
            assertEquals(0x37, SMBUtil.readInt2(buffer, 0));
    
            // Verify max items
            assertEquals(100, SMBUtil.readInt2(buffer, 2));
    
            // Verify flags (should be 0x00)
            assertEquals(0x00, SMBUtil.readInt2(buffer, 4));
    
            // Verify information level (SMB_FILE_BOTH_DIRECTORY_INFO)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
Back to top