Allocates a new byte buffer.
The new buffer's position will be zero, its limit will be its
capacity, its mark will be undefined, and each of its elements will be
initialized to zero. It will have a backing array,
and its array offset will be zero.
capacity
| The new buffer's capacity, in bytes |
IllegalArgumentException
| If the capacity is a negative integer |
Diagram: Buffer