Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 146 for 0xfeff (0.04 sec)

  1. guava-tests/test/com/google/common/primitives/ShortsTest.java

        assertThat(Shorts.toByteArray((short) 0xFEDC)).isEqualTo(new byte[] {(byte) 0xFE, (byte) 0xDC});
      }
    
      @GwtIncompatible // Shorts.fromByteArray
      public void testFromByteArray() {
        assertThat(Shorts.fromByteArray(new byte[] {0x23, 0x45})).isEqualTo((short) 0x2345);
        assertThat(Shorts.fromByteArray(new byte[] {(byte) 0xFE, (byte) 0xDC}))
            .isEqualTo((short) 0xFEDC);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbFileOutputStream.java

            // CAP_LARGE_WRITE
            if (th.hasCapability(SmbConstants.CAP_LARGE_WRITEX) && !th.areSignaturesActive()) {
                this.writeSizeFile = Math.min(th.getConfig().getSendBufferSize() - 70, 0xFFFF - 70);
            } else {
                log.debug("No support or SMB signing is enabled, not enabling large writes");
                this.writeSizeFile = this.writeSize;
            }
    
            if (log.isDebugEnabled()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/dfs/DfsReferralResponseBufferTest.java

                byte[] testBuffer = new byte[8];
                ByteBuffer bb = ByteBuffer.wrap(testBuffer).order(ByteOrder.LITTLE_ENDIAN);
                bb.putShort((short) 0xFFFE); // Max even pathConsumed
                bb.putShort((short) 0); // numReferrals
                bb.putShort((short) 0xFFFF); // Max tflags
                bb.putShort((short) 0); // tflags high bytes
    
                buffer.decode(testBuffer, 0, testBuffer.length);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

            // Set security buffer length to excessive size (> 64KB)
            SMBUtil.writeInt2(128, buffer, 56); // Security buffer offset
            // writeInt2(100000) will truncate to 100000 & 0xFFFF = 34464
            SMBUtil.writeInt2(100000, buffer, 58); // This becomes 34464 due to 16-bit truncation
    
            // Since 34464 is within the 16-bit range but could still be considered excessive for security buffer,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

        public void enc_ndr_small(final int s) {
            this.buf[this.index] = (byte) (s & 0xFF);
            advance(1);
        }
    
        /**
         * Decodes a small integer (1 byte) from NDR format.
         *
         * @return the decoded small integer value
         */
        public int dec_ndr_small() {
            final int val = this.buf[this.index] & 0xFF;
            advance(1);
            return val;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SIDCacheImpl.java

                            SamrDomainHandle domainHandle = new SamrDomainHandle(handle, policyHandle, 0x02000000, domSid)) {
                        final MsrpcEnumerateAliasesInDomain rpc = new MsrpcEnumerateAliasesInDomain(domainHandle, 0xFFFF, sam);
                        handle.sendrecv(rpc);
                        if (rpc.retval != 0) {
                            throw new SmbException(rpc.retval, false);
                        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Mon Aug 25 14:34:10 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java

        }
    
        @Test
        @DisplayName("Test createCancel with maximum MID value")
        void testCreateCancelWithMaxMid() {
            // Set MID to maximum value
            int maxMid = 0xFFFF;
            transaction.setMid(maxMid);
    
            // Create cancel request
            CommonServerMessageBlockRequest cancelRequest = transaction.createCancel();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/netbios/NameServiceClient.java

                    }
                }
                resolveOrder = new int[i];
                System.arraycopy(tmp, 0, resolveOrder, 0, i);
            }
        }
    
        int getNextNameTrnId() {
            if ((++nextNameTrnId & 0xFFFF) == 0) {
                nextNameTrnId = 1;
            }
            return nextNameTrnId;
        }
    
        void ensureOpen(final int timeout) throws IOException {
            closeTimeout = 0;
            if (SO_TIMEOUT != 0) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

            dst[dstIndex] = (byte) (this.wordCount / 2 & 0xFF);
            dstIndex++;
            dstIndex += this.wordCount;
            this.wordCount /= 2;
            this.byteCount = writeBytesWireFormat(dst, dstIndex + 2);
            dst[dstIndex++] = (byte) (this.byteCount & 0xFF);
            dst[dstIndex++] = (byte) (this.byteCount >> 8 & 0xFF);
            dstIndex += this.byteCount;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java

        private int pad2 = 0;
        private boolean hasMore = true;
        private boolean isPrimary = true;
        private int bufParameterOffset;
        private int bufDataOffset;
    
        static final int TRANSACTION_BUF_SIZE = 0xFFFF;
    
        /**
         * SMB TRANS2 subcommand for finding first matching files
         */
        public static final byte TRANS2_FIND_FIRST2 = (byte) 0x01;
        /**
         * SMB TRANS2 subcommand for finding next matching files
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17.3K bytes
    - Viewed (0)
Back to top