Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
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 -> in_channel -> 'a
Read a biniou value from a channel.
val from_file : ?len:int -> ?shrlen:int -> 'a reader -> string -> 'a
Read a biniou value from a file.
val to_channel :
?len:int ->
?shrlen:int ->
'a writer ->
out_channel ->
'a ->
unit
Write a biniou value to a channel.
val to_file : ?len:int -> ?shrlen:int -> 'a writer -> string -> 'a -> unit
Write a biniou value to a file.