package duff

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Delta.IndexSource

The type of the index.

Sourceval pp : t Fmt.t

Pretty-printer of t.

Sourceval memory_size : t -> int

memory_size t returns how many word(s) is needed to store t.

Sourceval make : ?copy:bool -> Cstruct.t -> t

make ?copy raw returns a Rabin's fingerprint of raw. ?copy signals to copy the input buffer raw or not because make expects to take the ownership of raw.

So, if the user want to change (by side-effect) raw then, returned value by make is not valid anymore. However, if copy is true, make will allocate a new Cstruct.t and copy raw to this new Cstruct.t.

OCaml

Innovation. Community. Security.