1 2 3 4 5 6 7
type writer = { buf: bytes ref; mutable bit_pos: int; } let test w = Bytes.length !(w.buf)