A Java-like ByteBuffer implementation using typed arrays.