Creates a writer ready to receive data.
Initial contents, or null to create an empty buffer.
Rate at which this buffer will grow when more space is needed.
Extracts the used bytes.
Note that if we had a partial byte, it will be written to the buffer. Any further writes will start at a new byte.
Write a given number of bits.
Count of bits to write.
Value of those bits.
Dynamic bit buffer writer.
Buffer increases its capacity as needed.