An implementation of ByteBuffer in C