package capnp-rpc

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

capnp-rpc-2.1.1.tbz
sha256=6e9675034c8eac5873ed511f9b968db5223278145bb02ac4a970053a53970a48
sha512=2e2eb8389071bdad3ceef1d15200bf28987f13319f754f4d1603828d0d79202b4de90a6eb294f12ee088c7e3b73755286fbe7076b8fd3d0b29644221e0e7e080

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.