package tezos-bls12-381-polynomial

  1. Overview
  2. Docs

Module Bls12_381_polynomial.Fr_carraySource

Sourcemodule Stubs : sig ... end
Sourcemodule type Stubs_sig = sig ... end
Sourcemodule type Carray_sig = sig ... end
Sourcemodule Make (S : Stubs_sig) : Carray_sig with type elt = S.elt
include sig ... end
Sourcetype elt = Stubs.elt
Sourceval encoding : t Data_encoding.t
Sourceval allocate : int -> t

allocate len creates a C array of size len intialized with zeros of blst_fr

Sourceval length : t -> int

length c returns the length of a C array c

Sourceval get : t -> int -> elt

get c i returns the i-th element of a C array c

Sourceval set : t -> elt -> int -> unit
Sourceval copy : ?offset:int -> ?len:int -> t -> t

copy c copies len elements from a C array c starting from position offset

Sourceval blit : t -> src_off:int -> t -> dst_off:int -> len:int -> unit

blit src src_off dst dst_off len copies len elements from src to dst starting at the respective offsets.

Sourceval to_array : ?offset:int -> ?len:int -> t -> elt array

to_array c converts a C array c to an OCaml array

Sourceval of_array : elt array -> t

of_array c converts an OCaml array c to a C array