Module Iobuf.Consume

module Consume: Accessors 
    with type ('a, 'd, 'w) t = ('d, seek) t -> 'a 
    with type 'a bin_prot := 'a Bin_prot.Type_class.reader
Consume.string t ~len reads len characters (all, by default) from t into a new string and advances the lower bound of the window accordingly.

Consume.bin_prot X.bin_read_t t returns the initial X.t in t, advancing past the bytes read.