BitWriter.flush

bool flush() nothrow @safe

Flush remaining bits (pad with zeros to byte boundary).

Returns

true if successful, false if buffer full.