Avro.Input
Input
A source of bytes.
val of_string : string -> t
val of_string_compressed_deflate : string -> t
Read from a string that is compressed using zlib. This will handle the decompression.
val of_chan : Stdlib.in_channel -> t
Input that reads from the given channel.
val with_file : ?flags:Stdlib.open_flag list -> string -> (t -> 'a) -> 'a
Opens file, call the function with an input feeding from the file, and makes sure to cleanup before returning the function's result.
module type CUSTOM = sig ... end
Custom inputs
val read_byte : t -> char
read_byte i
returns the next char, or raises
val read_exact : t -> bytes -> int -> int -> unit
read_exact i buf off len
reads len
bytes from i
val read_uint64 : t -> int64
val read_int64 : t -> int64
val read_int : t -> int
val read_bool : t -> bool
val read_string_of_len : t -> int -> string
val read_float32 : t -> float
val read_float64 : t -> float
val read_string : t -> string
Read length-prefixed string