Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Frame_reader.Expert
Sourceval consume_frame_even_if_incomplete_payload :
t ->
(Core.read_write, Iobuf.seek) Iobuf.t ->
Read_result.t
consume_frame_even_if_incomplete_payload
is useful for consuming payload data when: (i) the full frame payload is not available in the input iobuf (e.g. we haven't received the full frame yet); and (ii) the caller's ability to consume payload is limited (e.g. the downstream app buffer can't be resized)
It's meant to be invoked repeately on the same iobuf whenever there's more input data, or whenever the caller can handle more payload data.