package capnp

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val count_zeros : start:int -> stop:int -> string -> int
type output_buffers_t = {
  1. output_buf : Stdlib.Buffer.t;
  2. lit_buf : Stdlib.Buffer.t;
  3. tagged_bytes : Stdlib.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