capnp

OCaml code generation plugin for the Cap'n Proto serialization framework
IN THIS PACKAGE
Module Capnp . Runtime . Packing
val count_zeros : start:int -> stop:int -> string -> int
type output_buffers_t = {
output_buf : Buffer.t;
lit_buf : Buffer.t;
tagged_bytes : Bytes.t;
}
val pack_loop_words : input:string -> ofs:int -> buffers:output_buffers_t -> string
val pack_loop_bytes : input:string -> ofs:int -> buffers:output_buffers_t -> string
val pack_loop_zero_words : input:string -> ofs:int -> count:int -> buffers:output_buffers_t -> string
val pack_loop_literal_words : input:string -> ofs:int -> buffers:output_buffers_t -> count:int -> string
val pack_string : string -> string

Pack a word_aligned string.

val bits_set_lookup : int array
val bits_set : int -> int
module MixedContext : sig ... end
val transfer_mixed_bytes : unpacked:Capnp__FragmentBuffer.t -> mixed_context:MixedContext.t -> unit
val unpack_coalesce_buffer_and_retry : packed:Capnp__FragmentBuffer.t -> unpacked:Capnp__FragmentBuffer.t -> buf:string -> ofs:int -> mixed_context:MixedContext.t -> required_byte_count:int -> unit
val unpack_zeros : packed:Capnp__FragmentBuffer.t -> unpacked:Capnp__FragmentBuffer.t -> buf:string -> ofs:int -> mixed_context:MixedContext.t -> unit
val unpack_literal_bytes : packed:Capnp__FragmentBuffer.t -> unpacked:Capnp__FragmentBuffer.t -> buf:string -> ofs:int -> mixed_context:MixedContext.t -> unit
val unpack_mixed_bytes : packed:Capnp__FragmentBuffer.t -> unpacked:Capnp__FragmentBuffer.t -> buf:string -> ofs:int -> mixed_context:MixedContext.t -> tag:char -> unit
val unpack_decode_tag : packed:Capnp__FragmentBuffer.t -> unpacked:Capnp__FragmentBuffer.t -> buf:string -> ofs:int -> mixed_context:MixedContext.t -> unit
val unpack : packed:Capnp__FragmentBuffer.t -> unpacked:Capnp__FragmentBuffer.t -> unit

Unpack as much data as possible from the packed fragment buffer. into the unpacked fragment buffer.

val unpack_string : string -> string