Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for fromLittleEndianByteArray (0.18 seconds)

  1. guava-tests/test/com/google/common/net/InetAddressesTest.java

      }
    
      public void testFromLittleEndianByteArray() throws UnknownHostException {
        assertThat(InetAddresses.fromLittleEndianByteArray(new byte[] {1, 2, 3, 4}))
            .isEqualTo(InetAddress.getByAddress(new byte[] {4, 3, 2, 1}));
    
        assertThat(
                InetAddresses.fromLittleEndianByteArray(
                    new byte[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}))
            .isEqualTo(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 36.3K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/net/InetAddresses.java

       * @return an InetAddress object created from the raw IP address
       * @throws UnknownHostException if IP address is of illegal length
       */
      public static InetAddress fromLittleEndianByteArray(byte[] addr) throws UnknownHostException {
        byte[] reversed = new byte[addr.length];
        for (int i = 0; i < addr.length; i++) {
          reversed[i] = addr[addr.length - i - 1];
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 47.7K bytes
    - Click Count (0)
Back to Top