Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 150 for 0xfff6 (0.49 sec)

  1. src/test/java/jcifs/netbios/SessionServicePacketTest.java

            assertEquals((byte) ((value >> 8) & 0xFF), dst[0]);
            assertEquals((byte) (value & 0xFF), dst[1]);
        }
    
        @Test
        @DisplayName("writeInt2 with offset should write at correct position")
        void testWriteInt2WithOffset() {
            byte[] dst = new byte[10];
            dst[2] = (byte) 0xFF; // Mark position
            dst[3] = (byte) 0xFF;
    
            SessionServicePacket.writeInt2(0xABCD, dst, 4);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java

                    new ValidateNegotiateInfoRequest(DEFAULT_CAPABILITIES, defaultClientGuid, 0xFFFF, defaultDialects);
    
            byte[] buffer = new byte[request.size()];
            request.encode(buffer, 0);
    
            // Verify max security mode value (2 bytes)
            assertEquals(0xFFFF, SMBUtil.readInt2(buffer, 20) & 0xFFFF);
        }
    
        @Test
        @DisplayName("Test encode with all zero GUID")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ntlmssp/NtlmMessageTest.java

            buffer.putShort(0, (short) 0xFFFF);
            assertEquals(0xFFFF, NtlmMessage.readUShort(data, 0), "Should read max UShort correctly.");
    
            // Test with a negative short (should be interpreted as unsigned positive)
            buffer.putShort(0, (short) -1); // -1 is 0xFFFF
            assertEquals(0xFFFF, NtlmMessage.readUShort(data, 0), "Should interpret -1 as unsigned max UShort.");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

        @Override
        public final int readUnsignedShort() throws SmbException {
            if (read(tmp, 0, 2) < 0) {
                throw new SmbException("EOF");
            }
            return Encdec.dec_uint16be(tmp, 0) & 0xFFFF;
        }
    
        @Override
        public final char readChar() throws SmbException {
            if (read(tmp, 0, 2) < 0) {
                throw new SmbException("EOF");
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/dcerpc/msrpc/lsarpc.java

                    final int _name_bufferi = _src.index;
                    _src.advance(2 * _name_bufferl);
    
                    if (this.name.buffer == null) {
                        if (_name_buffers < 0 || _name_buffers > 0xFFFF) {
                            throw new NdrException(NdrException.INVALID_CONFORMANCE);
                        }
                        this.name.buffer = new short[_name_buffers];
                    }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 44.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java

            int len = cmd.writeParametersWireFormat(buffer, 0);
            assertTrue(len >= 2);
            // writeInt2 writes in little-endian format (LSB first)
            int written = (buffer[0] & 0xFF) | ((buffer[1] & 0xFF) << 8);
            int expected = level & 0xFFFF;
            assertEquals(expected, written);
        }
    
        // Helper method to extract string from buffer
        private String extractStringFromBuffer(byte[] buffer, int offset, int maxLen) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/dcerpc/msrpc/netdfs.java

                    final int _ss = _src.dec_ndr_long();
                    final int _si = _src.index;
                    _src.advance(4 * _ss);
    
                    if (this.s == null) {
                        if (_ss < 0 || _ss > 0xFFFF) {
                            throw new NdrException(NdrException.INVALID_CONFORMANCE);
                        }
                        this.s = new DfsInfo1[_ss];
                    }
                    _src = _src.derive(_si);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 21.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/persistent/HandleGuid.java

            long data4 = bb2.getLong();
    
            // Construct UUID from components - Java UUID expects big-endian representation
            long mostSig = ((long) data1 << 32) | ((long) (data2 & 0xFFFF) << 16) | (data3 & 0xFFFF);
            long leastSig = data4;
    
            this.guid = new UUID(mostSig, leastSig);
        }
    
        /**
         * Create a handle GUID from existing UUID
         * @param uuid the UUID to wrap
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java

                    this.negotiatedFlags2 |= SmbConstants.FLAGS2_SECURITY_REQUIRE_SIGNATURES;
                }
            } else {
                this.negotiatedFlags2 &= 0xFFFF ^ SmbConstants.FLAGS2_SECURITY_SIGNATURES;
                this.negotiatedFlags2 &= 0xFFFF ^ SmbConstants.FLAGS2_SECURITY_REQUIRE_SIGNATURES;
            }
    
            if (log.isDebugEnabled()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/dcerpc/msrpc/srvsvc.java

                    final int _arrayi = _src.index;
                    _src.advance(4 * _arrays);
    
                    if (array == null) {
                        if (_arrays < 0 || _arrays > 0xFFFF) {
                            throw new NdrException(NdrException.INVALID_CONFORMANCE);
                        }
                        array = new ShareInfo0[_arrays];
                    }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 26.3K bytes
    - Viewed (0)
Back to top