type 'a reader = Bi_inbuf.t -> 'aType of a read_ function as produced by atdgen -biniou.
type 'a writer = Bi_outbuf.t -> 'a -> unitType of a write_ function as produced by atdgen -biniou.
val from_channel : ?len:int -> ?shrlen:int -> 'a reader -> Stdlib.in_channel -> 'aRead a biniou value from a channel.
- parameter len
input buffer length.
- parameter shrlen
obsolete and ignored.
val from_file : ?len:int -> ?shrlen:int -> 'a reader -> string -> 'aRead a biniou value from a file.
- parameter len
input buffer length.
- parameter shrlen
obsolete and ignored.
val to_channel : ?len:int -> ?shrlen:int -> 'a writer -> Stdlib.out_channel -> 'a -> unitWrite a biniou value to a channel.
- parameter len
output buffer length.
- parameter shrlen
obsolete and ignored.
val to_file : ?len:int -> ?shrlen:int -> 'a writer -> string -> 'a -> unitWrite a biniou value to a file.
- parameter len
output buffer length.
- parameter shrlen
obsolete and ignored.