Home | History | Annotate | Download | only in primitives

Lines Matching refs:Byte

51   public static final int BYTES = Long.SIZE / Byte.SIZE;
235 * Returns a big-endian representation of {@code value} in an 8-element byte
238 * byte array {@code {0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19}}.
248 public static byte[] toByteArray(long value) {
249 return new byte[] {
250 (byte) (value >> 56),
251 (byte) (value >> 48),
252 (byte) (value >> 40),
253 (byte) (value >> 32),
254 (byte) (value >> 24),
255 (byte) (value >> 16),
256 (byte) (value >> 8),
257 (byte) value};
263 * ByteBuffer.wrap(bytes).getLong()}. For example, the input byte array
276 public static long fromByteArray(byte[] bytes) {