public int Capacity() { return capacity; }
public void Put(ByteBuffer buf) { Put(buf.buffer, buf.ArrayOffset(), buf.Capacity()); }