Go implementation of the Java ByteBuffer