Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 225 for endian (0.04 seconds)

  1. src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java

            decoded.decode(buf);
            assertEquals(expected, decoded.value, "decoded value should match original after masking");
        }
    
        /**
         * Verify that encode writes the correct little-endian sequence
         * to the buffer and that alignment is respected.
         */
        @Test
        void encodeWritesCorrectBytesAndAlignment() throws NdrException {
            NdrShort ns = new NdrShort(0xABCD); // value & 0xFF => 0xCD
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java

            @DisplayName("Reads structure size 4 and returns 4 for various start indexes")
            void returnsFour_whenStructureSizeIsFour(int start) throws Exception {
                // Arrange: build a buffer that has the little-endian value 4 at 'start'
                int len = start + 2; // need at least two bytes from start
                byte[] buffer = new byte[len + 3];
                SMBUtil.writeInt2(4, buffer, start);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb1/dcerpc/DcerpcMessage.java

            buf.enc_ndr_small(5); /* RPC version */
            buf.enc_ndr_small(0); /* minor version */
            buf.enc_ndr_small(ptype);
            buf.enc_ndr_small(flags);
            buf.enc_ndr_long(0x00000010); /* Little-endian / ASCII / IEEE */
            buf.enc_ndr_short(length);
            buf.enc_ndr_short(0); /* length of auth_value */
            buf.enc_ndr_long(call_id);
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

        /*
         * These arrays are set up to test that the comparator compares bytes within a word in the
         * correct order—in order words, that it doesn't mix up big-endian and little-endian. The first
         * array has a smaller element at one index, and then the second array has a smaller element at
         * the next.
         */
        byte[] a0 = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 99, 15, 16, 17};
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 13.6K bytes
    - Click Count (0)
  5. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

            ndrBuffer.enc_ndr_short(0xABCD);
            assertEquals(2, ndrBuffer.getIndex()); // Aligned to 2, then advanced by 2
            assertEquals(2, ndrBuffer.getLength());
            assertEquals((byte) 0xCD, buffer[0]); // Little-endian
            assertEquals((byte) 0xAB, buffer[1]);
    
            ndrBuffer.setIndex(0);
            int val = ndrBuffer.dec_ndr_short() & 0xFFFF;
            assertEquals(0xABCD, val);
            assertEquals(2, ndrBuffer.getIndex());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.3K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/MIENameTest.java

            buf[i++] = tokId[0];
            buf[i++] = tokId[1];
            // MECH_OID_LEN (2 bytes big-endian)
            buf[i++] = (byte) ((oidLen >>> 8) & 0xFF);
            buf[i++] = (byte) (oidLen & 0xFF);
            // MECH_OID
            System.arraycopy(oidDer, 0, buf, i, oidLen);
            i += oidLen;
            // NAME_LEN (4 bytes big-endian)
            buf[i++] = (byte) ((nameLen >>> 24) & 0xFF);
            buf[i++] = (byte) ((nameLen >>> 16) & 0xFF);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  7. src/test/java/jcifs/dcerpc/DcerpcMessageTest.java

                verify(mockBuffer).enc_ndr_small(DcerpcConstants.RPC_C_PF_BROADCAST); // flags
                verify(mockBuffer).enc_ndr_long(0x00000010); // Little-endian / ASCII / IEEE
                verify(mockBuffer).enc_ndr_short(message.length);
                verify(mockBuffer, times(1)).enc_ndr_short(0); // auth_value length
                verify(mockBuffer).enc_ndr_long(message.call_id);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 18.3K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/hash/HashFunction.java

       * {@code int} value, interpreted in little-endian byte order. The implementation <i>might</i>
       * perform better than its longhand equivalent, but should not perform worse.
       *
       * @since 12.0
       */
      HashCode hashInt(int input);
    
      /**
       * Shortcut for {@code newHasher().putLong(input).hash()}; returns the hash code for the given
       * {@code long} value, interpreted in little-endian byte order. The implementation <i>might</i>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/hash/Hasher.java

    /**
     * A {@link PrimitiveSink} that can compute a hash code after reading the input. Each hasher should
     * translate all multibyte values ({@link #putInt(int)}, {@link #putLong(long)}, etc) to bytes in
     * little-endian order.
     *
     * <p><b>Warning:</b> The result of calling any methods after calling {@link #hash} is undefined.
     *
     * <p><b>Warning:</b> Using a specific character encoding when hashing a {@link CharSequence} with
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/hash/SipHashFunction.java

        // The number of finalization rounds.
        private final int d;
    
        // Four 64-bit words of internal state.
        // The initial state corresponds to the ASCII string "somepseudorandomlygeneratedbytes",
        // big-endian encoded. There is nothing special about this value; the only requirement
        // was some asymmetry so that the initial v0 and v1 differ from v2 and v3.
        private long v0 = 0x736f6d6570736575L;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 5.3K bytes
    - Click Count (0)
Back to Top