class BinData::IO::Write

def offset

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