Home | History | Annotate | Download | only in primitives

Lines Matching defs:BYTES

51    * The number of bytes required to represent a primitive {@code char}
54 public static final int BYTES = Character.SIZE / Byte.SIZE;
289 * stored in the first 2 bytes of {@code bytes}; equivalent to {@code
290 * ByteBuffer.wrap(bytes).getChar()}. For example, the input byte array
296 * @throws IllegalArgumentException if {@code bytes} has fewer than 2
300 public static char fromByteArray(byte[] bytes) {
301 checkArgument(bytes.length >= BYTES,
302 "array too small: %s < %s", bytes.length, BYTES);
303 return fromBytes(bytes[0], bytes[1]);
308 * bytes, in big-endian order; equivalent to {@code Chars.fromByteArray(new