Module Iobuf.Peek

module Peek: Accessors 
    with type ('a, 'd, 'w) t = ('d, 'w) t -> pos:int -> 'a 
    with type 'a bin_prot := 'a Bin_prot.Type_class.reader
Peek and Poke functions access a value at pos from the lower bound of the window and do not advance.

Peek.bin_prot X.bin_read_t t returns the initial X.t in t without advancing.

Following the bin_prot protocol, the representation of x is X.bin_size_t x bytes long. Peek., Poke., Consume., and Fill.bin_prot do not add any size prefix or other framing to the bin_prot representation.