Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for reverseBytes (0.21 sec)

  1. src/main/java/jcifs/pac/PacDataInputStream.java

            align(2);
            return Short.reverseBytes(this.dis.readShort());
        }
    
    
        public int readInt () throws IOException {
            align(4);
            return Integer.reverseBytes(this.dis.readInt());
        }
    
    
        public long readLong () throws IOException {
            align(8);
            return Long.reverseBytes(this.dis.readLong());
        }
    
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sat Jul 21 21:19:58 GMT 2018
    - 5.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/LittleEndianByteArray.java

            return Long.reverseBytes(bigEndian);
          }
    
          @Override
          public void putLongLittleEndian(byte[] array, int offset, long value) {
            // Reverse the order of the bytes before storing, since we're on big-endian hardware.
            long littleEndianValue = Long.reverseBytes(value);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/LittleEndianDataOutputStream.java

       * little-endian byte order.
       *
       * @throws IOException if an I/O error occurs
       */
      @Override
      public void writeLong(long v) throws IOException {
        byte[] bytes = Longs.toByteArray(Long.reverseBytes(v));
        write(bytes, 0, bytes.length);
      }
    
      /**
       * Writes a {@code short} as specified by {@link DataOutputStream#writeShort(int)}, except using
       * little-endian byte order.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 5.2K bytes
    - Viewed (0)
  4. api/go1.9.txt

    pkg math/bits, func Reverse16(uint16) uint16
    pkg math/bits, func Reverse32(uint32) uint32
    pkg math/bits, func Reverse64(uint64) uint64
    pkg math/bits, func Reverse8(uint8) uint8
    pkg math/bits, func ReverseBytes(uint) uint
    pkg math/bits, func ReverseBytes16(uint16) uint16
    pkg math/bits, func ReverseBytes32(uint32) uint32
    pkg math/bits, func ReverseBytes64(uint64) uint64
    pkg math/bits, func RotateLeft(uint, int) uint
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 04 20:20:20 GMT 2021
    - 10.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/hash/HashFunction.java

     * <i>little-endian</i> order. That is, hashing the byte array {@code {0x01, 0x02, 0x03, 0x04}} is
     * equivalent to hashing the {@code int} value {@code 0x04030201}. If this isn't what you need,
     * methods such as {@link Integer#reverseBytes} and {@link Ints#toByteArray} will help.
     *
     * <h3>Relationship to {@link Object#hashCode}</h3>
     *
     * <p>Java's baked-in concept of hash codes is constrained to 32 bits, and provides no separation
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 25 18:22:59 GMT 2021
    - 10.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/HashingTest.java

      }
    
      public void testHashIntReverseBytesVsHashBytesIntsToByteArray() {
        int input = 42;
        assertEquals(
            Hashing.md5().hashBytes(Ints.toByteArray(input)),
            Hashing.md5().hashInt(Integer.reverseBytes(input)));
      }
    
      public void testHashIntVsForLoop() {
        int input = 42;
        HashCode expected = Hashing.md5().hashInt(input);
    
        Hasher hasher = Hashing.md5().newHasher();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/hash/HashTestUtils.java

        }
    
        // Then hash the result array
        byte[] result = hashFunction.hash(hashes, 0);
    
        // interpreted in little-endian order.
        int verification = Integer.reverseBytes(Ints.fromByteArray(result));
    
        if (expected != verification) {
          throw new AssertionError(
              "Expected: "
                  + Integer.toHexString(expected)
                  + " got: "
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/HashingTest.java

      }
    
      public void testHashIntReverseBytesVsHashBytesIntsToByteArray() {
        int input = 42;
        assertEquals(
            Hashing.md5().hashBytes(Ints.toByteArray(input)),
            Hashing.md5().hashInt(Integer.reverseBytes(input)));
      }
    
      public void testHashIntVsForLoop() {
        int input = 42;
        HashCode expected = Hashing.md5().hashInt(input);
    
        Hasher hasher = Hashing.md5().newHasher();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/HashTestUtils.java

        }
    
        // Then hash the result array
        byte[] result = hashFunction.hash(hashes, 0);
    
        // interpreted in little-endian order.
        int verification = Integer.reverseBytes(Ints.fromByteArray(result));
    
        if (expected != verification) {
          throw new AssertionError(
              "Expected: "
                  + Integer.toHexString(expected)
                  + " got: "
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
Back to top