Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Frame.Iobuf_writer
Sourceval start_write :
t ->
(Core.read_write, Iobuf.seek) Iobuf.t ->
opcode:Opcode.t ->
final:bool ->
content_len:int ->
(Core.read_write, Iobuf.seek) Iobuf.t
Starts writing a frame to the given iobuf; and returns a "content window" iobuf pointing to websocket frame's content.
Caller must:
required_frame_bytes
space.content_len
bytes to the content window.finish_write
.