marina_frame (marina v0.4.3)

View Source

Summary

Types

frame/0

-type frame() ::
          #frame{flags :: byte(),
                 stream :: integer(),
                 opcode :: non_neg_integer(),
                 body :: iolist() | binary()}.

Functions

decode(Bin)

-spec decode(binary()) -> {binary(), [frame()]}.

encode(Frame)

-spec encode(frame()) -> iolist().

pending_size(_)

-spec pending_size(binary()) -> pos_integer() | undefined.