Avro.OutputA sink for bytes.
Serializing objects always ends up writing bytes to some output.
val of_buffer : Stdlib.Buffer.t -> tOutput into the given buffer. Encoded data can be accessed using Buffer.contents.
val of_chan : Stdlib.out_channel -> tWrite data to the given channel.
val with_file : ?flags:Stdlib.open_flag list -> ?mode:int -> string -> (t -> 'a) -> 'awith_file file f opens file, obtaining a channel oc, calls f out with an output that writes to the channel oc. When f out returns, this closes oc and returns the same as f.
val of_iobuf_chain : Avro__Iobuf.Pool.t -> t * Avro__Iobuf.Chain.tof_iobuf_chain pool is an output that writes to buffers allocated from pool. It also returns a chain of buffers into which the content is written
module type CUSTOM = sig ... endCustom output
val write_byte : t -> char -> unitWrite a single byte.
val write_slice : t -> bytes -> int -> int -> unitWrite the given slice.
val write_bool : t -> bool -> unitval write_int : t -> int -> unitval write_int64 : t -> int64 -> unitval write_float32 : t -> float -> unitval write_float64 : t -> float -> unitval write_string : t -> string -> unitval write_string_of_len : t -> int -> string -> unitval flush : t -> unitHint to flush underlying buffer/channel/socket.