package capnp-rpc

  1. Overview
  2. Docs
Cap'n Proto is a capability-based RPC system with bindings for many languages

Install

Dune Dependency

Authors

Maintainers

Sources

capnp-rpc-2.1.tbz
sha256=4b59a4147cf6e49c650dbfa4cdb918aec3be69cffd1ef6b5c818584464feb987
sha512=69114597e9cd8ad42c72c1751796b216f98f2a9f09f50a0628b4a3259c2f9b169fd47a73be7b76cfda298a6c202bc79762116865272e35ca0d0914242ace34d7

doc/capnp-rpc.proto/Capnp_rpc_proto/RO_array/index.html

Module Capnp_rpc_proto.RO_arraySource

A read-only array.

Sourcetype 'a t
Sourceval of_list : 'a list -> 'a t
Sourceval init : int -> (int -> 'a) -> 'a t
Sourceval get_exn : 'a t -> int -> 'a
Sourceval get : oob:'a -> 'a t -> int -> 'a
Sourceval length : 'a t -> int
Sourceval map : ('a -> 'b) -> 'a t -> 'b t
Sourceval mapi : (int -> 'a -> 'b) -> 'a t -> 'b t
Sourceval iter : ('a -> unit) -> 'a t -> unit
Sourceval iteri : (int -> 'a -> unit) -> 'a t -> unit
Sourceval fold_left : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a
Sourceval find : ('a -> bool) -> 'a t -> 'a option
Sourceval empty : 'a t
Sourceval pp : 'a Fmt.t -> 'a t Fmt.t
Sourceval equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool
Sourceval release : 'a t -> 'a -> unit

release t null replaces every element in the array with null. This is useful to mark the array as finished.

OCaml

Innovation. Community. Security.