decimal t ~pos i returns the number of bytes written at pos.
decimal t ~pos i
pos
('d, 'w) Iobuf.t accessor function manipulating 'a, either writing it to the iobuf or reading it from the iobuf.
('d, 'w) Iobuf.t
'a