package irmin-bench

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

Module Trace_common.IoSource

Derive the IO operations from a file format. Only the write operations are performance sensitive, the read operations are not.

Parameters

module Ff : File_format

Signature

Sourceval decode_i32 : int32 Repr.decode_bin
Sourceval encode_i32 : int32 Repr.encode_bin
Sourceval magic : Magic.t
Sourceval read_with_prefix_exn : (string -> int ref -> 'a) -> in_channel -> 'a
Sourceval decoded_seq_of_encoded_chan_with_prefixes : 'a Repr.ty -> in_channel -> 'a Seq.t
Sourceval open_reader : string -> Ff.Latest.header * Ff.Latest.row Seq.t
Sourcetype writer = {
  1. path : string;
  2. channel : out_channel;
  3. buffer : Buffer.t;
}
Sourceval create_file : string -> Ff.Latest.header -> writer
Sourceval append_row : writer -> Ff.Latest.row -> unit
Sourceval flush : writer -> unit
Sourceval close : writer -> unit
Sourceval remove : writer -> unit
OCaml

Innovation. Community. Security.