module Biniou: sig
.. end
type 'a
reader = Bi_inbuf.t -> 'a
Type of a read_
function as produced by atdgen -biniou
.
type 'a
writer = Bi_outbuf.t -> 'a -> unit
Type of a write_
function as produced by atdgen -biniou
.
val from_channel : ?len:int ->
?shrlen:int -> 'a reader -> Pervasives.in_channel -> 'a
Read a biniou value from a channel.
len
: input buffer length.
shrlen
: initial length of the table used to store shared values.
val from_file : ?len:int -> ?shrlen:int -> 'a reader -> string -> 'a
Read a biniou value from a file.
len
: input buffer length.
shrlen
: initial length of the table used to store shared values.
val to_channel : ?len:int ->
?shrlen:int ->
'a writer -> Pervasives.out_channel -> 'a -> unit
Write a biniou value to a channel.
len
: output buffer length.
shrlen
: initial length of the table used to store shared values.
val to_file : ?len:int -> ?shrlen:int -> 'a writer -> string -> 'a -> unit
Write a biniou value to a file.
len
: output buffer length.
shrlen
: initial length of the table used to store shared values.