public final class ByteBuffers
extends java.lang.Object
ByteBuffer instances.| Modifier and Type | Method and Description |
|---|---|
static java.nio.ByteBuffer |
littleEndian(byte[] array)
Allocates a new byte buffer with little-endian byte order.
|
static java.nio.ByteBuffer |
littleEndian(java.nio.ByteBuffer allocate)
Sets the give buffer to little-endian.
|
static java.nio.ByteBuffer |
littleEndian(int capacity)
Allocates a new byte buffer with little-endian byte order.
|
public static java.nio.ByteBuffer littleEndian(byte[] array)
The new buffer's position is zero, the limit is its capacity, the mark is undefined, and each of element is initialized to zero. The new buffer has the
given backing array, and its array offset is zero.
array - The array that will back the new byte buffer.public static java.nio.ByteBuffer littleEndian(java.nio.ByteBuffer allocate)
allocate - The buffer to set to little-endian.public static java.nio.ByteBuffer littleEndian(int capacity)
The new buffer's position is zero, the limit is its capacity, the mark is undefined, and each of element is initialized to zero. The new buffer has a
backing array, and its array offset is zero.
capacity - The new buffer's capacity, in bytes.java.lang.IllegalArgumentException - If the capacity is negative.Copyright © 2010 - 2025 Adobe. All Rights Reserved