class BinData::IO::Write

def offset

up when writing bitfields.
Returns the current offset of the io stream. Offset will be rounded
def offset
  @write_count + (@wnbits > 0 ? 1 : 0)
end