Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 37 for FromBytes (0.2 sec)

  1. android/guava/src/com/google/common/hash/HashCode.java

       * immutability contract of {@code HashCode}. The array cannot be empty.
       *
       * @since 15.0 (since 12.0 in HashCodes)
       */
      public static HashCode fromBytes(byte[] bytes) {
        checkArgument(bytes.length >= 1, "A HashCode must contain at least 1 byte.");
        return fromBytesNoCopy(bytes.clone());
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 12.6K bytes
    - Viewed (0)
  2. internal/s3select/sql/value_test.go

    // Values should match if type is the same.
    var valueBuilders = []func() *Value{
    	FromNull,
    	func() *Value {
    		return FromBool(true)
    	},
    	func() *Value {
    		return FromBytes([]byte("byte contents"))
    	},
    	func() *Value {
    		return FromFloat(math.Pi)
    	},
    	func() *Value {
    		return FromInt(0x1337)
    	},
    	func() *Value {
    		t, err := time.Parse(time.RFC3339, "2006-01-02T15:04:05Z")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/ShortsTest.java

          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      @GwtIncompatible // Shorts.fromBytes
      public void testFromBytes() {
        assertThat(Shorts.fromBytes((byte) 0x23, (byte) 0x45)).isEqualTo((short) 0x2345);
        assertThat(Shorts.fromBytes((byte) 0xFE, (byte) 0xDC)).isEqualTo((short) 0xFEDC);
      }
    
      @GwtIncompatible // Shorts.fromByteArray, Shorts.toByteArray
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  4. internal/s3select/simdj/record.go

    			return nil, err
    		}
    		return sql.FromBool(v), nil
    	case simdjson.TypeNull:
    		return sql.FromNull(), nil
    	case simdjson.TypeObject, simdjson.TypeArray:
    		b, err := iter.MarshalJSON()
    		return sql.FromBytes(b), err
    	}
    	return nil, fmt.Errorf("iterToValue: unknown JSON type: %s", iter.Type().String())
    }
    
    // Reset the record.
    func (r *Record) Reset() {
    	r.object = simdjson.Object{}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 5.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/CharsTest.java

          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      @GwtIncompatible // Chars.fromBytes
      public void testFromBytes() {
        assertThat(Chars.fromBytes((byte) 0x23, (byte) 0x45)).isEqualTo('\u2345');
        assertThat(Chars.fromBytes((byte) 0xFE, (byte) 0xDC)).isEqualTo('\uFEDC');
      }
    
      @GwtIncompatible // Chars.fromByteArray, Chars.toByteArray
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 24.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/CharsTest.java

          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      @GwtIncompatible // Chars.fromBytes
      public void testFromBytes() {
        assertThat(Chars.fromBytes((byte) 0x23, (byte) 0x45)).isEqualTo('\u2345');
        assertThat(Chars.fromBytes((byte) 0xFE, (byte) 0xDC)).isEqualTo('\uFEDC');
      }
    
      @GwtIncompatible // Chars.fromByteArray, Chars.toByteArray
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 24.7K bytes
    - Viewed (0)
  7. internal/s3select/sql/value.go

    func FromNull() *Value {
    	return &Value{value: nil}
    }
    
    // FromMissing creates a Value with Missing value
    func FromMissing() *Value {
    	return &Value{value: Missing{}}
    }
    
    // FromBytes creates a Value from a []byte
    func FromBytes(b []byte) *Value {
    	return &Value{value: b}
    }
    
    // FromArray creates a Value from an array of values.
    func FromArray(a []Value) *Value {
    	return &Value{value: a}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/Chars.java

        return fromBytes(bytes[0], bytes[1]);
      }
    
      /**
       * Returns the {@code char} value whose byte representation is the given 2 bytes, in big-endian
       * order; equivalent to {@code Chars.fromByteArray(new byte[] {b1, b2})}.
       *
       * @since 7.0
       */
      @GwtIncompatible // doesn't work
      public static char fromBytes(byte b1, byte b2) {
        return (char) ((b1 << 8) | (b2 & 0xFF));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/LongsTest.java

        assertThat(
                Longs.fromBytes(
                    (byte) 0x12,
                    (byte) 0x13,
                    (byte) 0x14,
                    (byte) 0x15,
                    (byte) 0x16,
                    (byte) 0x17,
                    (byte) 0x18,
                    (byte) 0x19))
            .isEqualTo(0x1213141516171819L);
        assertThat(
                Longs.fromBytes(
                    (byte) 0xFF,
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/LongsTest.java

        assertThat(
                Longs.fromBytes(
                    (byte) 0x12,
                    (byte) 0x13,
                    (byte) 0x14,
                    (byte) 0x15,
                    (byte) 0x16,
                    (byte) 0x17,
                    (byte) 0x18,
                    (byte) 0x19))
            .isEqualTo(0x1213141516171819L);
        assertThat(
                Longs.fromBytes(
                    (byte) 0xFF,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30K bytes
    - Viewed (0)
Back to top