package avro

  1. Overview
  2. Docs

Module Obj_container_file.DecodeSource

Decoding multiple rows from an input

Sourcetype 'a t

Decoder for values of type 'a

Sourceval make : Input.t -> read:(Input.t -> 'a) -> 'a t

Decoder using the given input, and given row reading function.

Sourceval cur_block_remaining_count : _ t -> int

How many items remain in the current block (can be 0 at the beginning)

Sourceval next : 'a t -> 'a option

Read next row

High level API

Sourceval iter : 'a t -> f:('a -> unit) -> unit
Sourceval fold : 'a t -> f:('b -> 'a -> 'b) -> init:'b -> 'b
Sourceval to_seq : 'a t -> 'a Seq.t
Sourceval to_list : 'a t -> 'a list
Sourceval to_array : 'a t -> 'a array