sig
class type mstring =
object
method as_memory : Netsys_mem.memory * int
method as_string : string * int
method blit_to_memory : int -> Netsys_mem.memory -> int -> int -> unit
method blit_to_string : int -> string -> int -> int -> unit
method length : int
method preferred : [ `Memory | `String ]
end
class type mstring_factory =
object
method create_from_memory :
Netsys_mem.memory -> int -> int -> bool -> Xdr_mstring.mstring
method create_from_string :
string -> int -> int -> bool -> Xdr_mstring.mstring
end
val string_based_mstrings : Xdr_mstring.mstring_factory
val string_to_mstring :
?pos:int -> ?len:int -> string -> Xdr_mstring.mstring
val memory_based_mstrings : Xdr_mstring.mstring_factory
val memory_to_mstring :
?pos:int -> ?len:int -> Netsys_mem.memory -> Xdr_mstring.mstring
val paligned_memory_based_mstrings : Xdr_mstring.mstring_factory
val memory_pool_based_mstrings :
Netsys_mem.memory_pool -> Xdr_mstring.mstring_factory
val length_mstrings : Xdr_mstring.mstring list -> int
val concat_mstrings : Xdr_mstring.mstring list -> string
val prefix_mstrings : Xdr_mstring.mstring list -> int -> string
val blit_mstrings_to_memory :
Xdr_mstring.mstring list -> Netsys_mem.memory -> unit
val shared_sub_mstring :
Xdr_mstring.mstring -> int -> int -> Xdr_mstring.mstring
val shared_sub_mstrings :
Xdr_mstring.mstring list -> int -> int -> Xdr_mstring.mstring list
val copy_mstring : Xdr_mstring.mstring -> Xdr_mstring.mstring
val copy_mstrings : Xdr_mstring.mstring list -> Xdr_mstring.mstring list
type named_mstring_factories =
(string, Xdr_mstring.mstring_factory) Hashtbl.t
end