package scid
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Scid.E
type dst = | Channel of out_channel| Buffer of Buffer.t| Manual(*The type for output destinations.
*)
encode e v is :
`Partialiffehas a`Manualdestination and needs more output storage. The client must useManual.dstto provide a new buffer and then callencodewith`Awaituntil`Okis returned.`Okwhen the encoder is ready to encode a new`Ror`End.
For `Manual destinations, encoding `End always returns `Partial, continue with `Await until `Ok is returned at which point Manual.dst_rem e is guaranteed to be the size of the last provided buffer (i.e. nothing was written).
Raises. Invalid_argument if a non well-formed sequence of lexemes is encoded or if a `Lexeme or `End is encoded after a `Partial encode.
module Manual : sig ... endManual destinations.