Up

module Bigstring_marshal

: sig
include module type of Core_kernel.Std.Bigstring_marshal
#
val marshal_to_fd : ?buf:Core_kernel.Std.Bigstring.t -> ?flags:Marshal.extern_flags list -> Unix.file_descr -> 'a -> unit

marshal_to_fd ?buf fd v marshals data v to file descriptor fd using marshalling buffer buf, and marshalling flags flags. Raises input errors as in Bigstring.really_write.

Raises Failure if buf cannot hold enough data for marshalling.
flags default =
buf default = determined dynamically
#
val marshal_to_sock_no_sigpipe : (?buf:Core_kernel.Std.Bigstring.t -> ?flags:Marshal.extern_flags list -> Unix.file_descr -> 'a -> unit) Core_kernel.Std.Or_error.t

marshal_to_sock_no_sigpipe ?buf sock v same as marshal_to_fd, but writes to sockets only and uses Bigstring.really_send_no_sigpipe to avoid SIGPIPE on sockets.

#
val unmarshal_from_sock : ?buf:Core_kernel.Std.Bigstring.t -> Unix.file_descr -> 'a

unmarshal_from_sock ?buf sock unmarshals data from socket sock using unmarshalling buffer buf. Raises input errors as in Bigstring.really_recv.

Raises Failure if buf cannot hold enough data for unmarshalling.
buf default = determined dynamically
end