package capnp
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=d141d6ea5889fb9cc9ceef70408dd410ca0d84edae1d1208d4f90ca74ce77b18
sha512=7d70da54317c8ec13b5129343fc9558e7fe387fc41ac0524cd9363153d47cf293ea36c5d598ab04d9817292cb84d5e764c9446ae29eebcb01976b937a82192b0
doc/capnp/Capnp/Codecs/index.html
Module Capnp.CodecsSource
val serialize_fold :
'cap Message.BytesMessage.Message.t ->
compression:compression_t ->
init:'acc ->
f:('acc -> string -> 'acc) ->
'accserialize_fold message ~compression ~init ~f generates an ordered sequence of string fragments corresponding to a Cap'n Proto framed message, encoded using the specified compression method. The return value is the result of folding f across the resulting sequence of fragments.
val serialize_iter :
'cap Message.BytesMessage.Message.t ->
compression:compression_t ->
f:(string -> unit) ->
unitserialize_iter message ~compression ~f generates an ordered sequence of string fragments corresponding to a Cap'n Proto framed message, encoded using the specified compression method. f is applied to each fragment in turn.
val serialize_fold_copyless :
'cap Message.BytesMessage.Message.t ->
compression:compression_t ->
init:'acc ->
f:('acc -> string -> int -> 'acc) ->
'accserialize_fold_copyless message ~compression ~init ~f exposes an ordered sequence of string fragments (and lengths) corresponding to a Cap'n Proto framed message, encoded using the specified compression method. The return value is the result of folding f across the resulting sequence of fragments.
val serialize_iter_copyless :
'cap Message.BytesMessage.Message.t ->
compression:compression_t ->
f:(string -> int -> unit) ->
unitserialize_iter_copyless message ~compression ~f exposes an ordered sequence of string fragments (and lengths) corresponding to a Cap'n Proto framed message, encoded using the specified compression method. f is applied to each fragment in turn.
serialize ~compression message constructs a string containing the message segments prefixed with the serialization framing header, encoded using the specified compression method.