package capnp

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module CamlBytes = Bytes
module Bytes = CamlBytes
val count_zeros : start:int -> stop:int -> Core_kernel.Std.String.t -> int
type output_buffers_t = {
  1. output_buf : Buffer.t;
  2. lit_buf : Buffer.t;
  3. tagged_bytes : Bytes.t;
}
val pack_loop_words : input:Core_kernel.Std.String.t -> ofs:int -> buffers:output_buffers_t -> string
val pack_loop_bytes : input:Core_kernel.Std.String.t -> ofs:int -> buffers:output_buffers_t -> string
val pack_loop_zero_words : input:Core_kernel.Std.String.t -> ofs:int -> count:int -> buffers:output_buffers_t -> string
val pack_loop_literal_words : input:Core_kernel.Std.String.t -> ofs:int -> buffers:output_buffers_t -> count:int -> string
val pack_string : string -> string

Pack a word_aligned string.

val bits_set_lookup : int Core_kernel.Std.Array.t
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:Core_kernel.Std.String.t -> ofs:int -> mixed_context:MixedContext.t -> required_byte_count:int -> unit
val unpack_zeros : packed:Capnp__.FragmentBuffer.t -> unpacked:Capnp__.FragmentBuffer.t -> buf:Core_kernel.Std.String.t -> ofs:int -> mixed_context:MixedContext.t -> unit
val unpack_literal_bytes : packed:Capnp__.FragmentBuffer.t -> unpacked:Capnp__.FragmentBuffer.t -> buf:Core_kernel.Std.String.t -> ofs:int -> mixed_context:MixedContext.t -> unit
val unpack_mixed_bytes : packed:Capnp__.FragmentBuffer.t -> unpacked:Capnp__.FragmentBuffer.t -> buf:Core_kernel.Std.String.t -> ofs:int -> mixed_context:MixedContext.t -> tag:Core_kernel.Std.Char.t -> unit
val unpack_decode_tag : packed:Capnp__.FragmentBuffer.t -> unpacked:Capnp__.FragmentBuffer.t -> buf:Core_kernel.Std.String.t -> 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
OCaml

Innovation. Community. Security.