package avro

  1. Overview
  2. Docs

Custom inputs

val small_buf8 : bytes

A small buffer, used in various places

val read_byte : unit -> char

Read a single byte

  • raises End_of_file

    if input is exhausted

val read_exact : bytes -> int -> int -> unit

read_exact buf i len reads len bytes into buf, starting at offset i

  • raises End_of_file

    if input has less than len bytes