sig
class type mstring =
object
method as_bytes : Stdlib.Bytes.t * int
method as_memory : Netsys_mem.memory * int
method as_string : string * int
method blit_to_bytes : int -> Stdlib.Bytes.t -> int -> int -> unit
method blit_to_memory : int -> Netsys_mem.memory -> int -> int -> unit
method blit_to_string : int -> Stdlib.Bytes.t -> int -> int -> unit
method length : int
method preferred : [ `Bytes | `Memory ]
end
class type mstring_factory =
object
method create_from_bytes :
Stdlib.Bytes.t -> int -> int -> bool -> Netxdr_mstring.mstring
method create_from_memory :
Netsys_mem.memory -> int -> int -> bool -> Netxdr_mstring.mstring
method create_from_string :
string -> int -> int -> bool -> Netxdr_mstring.mstring
end
val bytes_based_mstrings : Netxdr_mstring.mstring_factory
val string_based_mstrings : Netxdr_mstring.mstring_factory
val string_to_mstring :
?pos:int -> ?len:int -> string -> Netxdr_mstring.mstring
val bytes_to_mstring :
?pos:int -> ?len:int -> Stdlib.Bytes.t -> Netxdr_mstring.mstring
val memory_based_mstrings : Netxdr_mstring.mstring_factory
val memory_to_mstring :
?pos:int -> ?len:int -> Netsys_mem.memory -> Netxdr_mstring.mstring
val paligned_memory_based_mstrings : Netxdr_mstring.mstring_factory
val memory_pool_based_mstrings :
Netsys_mem.memory_pool -> Netxdr_mstring.mstring_factory
val length_mstrings : Netxdr_mstring.mstring list -> int
val concat_mstrings : Netxdr_mstring.mstring list -> string
val concat_mstrings_bytes : Netxdr_mstring.mstring list -> Stdlib.Bytes.t
val prefix_mstrings : Netxdr_mstring.mstring list -> int -> string
val prefix_mstrings_bytes :
Netxdr_mstring.mstring list -> int -> Stdlib.Bytes.t
val blit_mstrings_to_memory :
Netxdr_mstring.mstring list -> Netsys_mem.memory -> unit
val shared_sub_mstring :
Netxdr_mstring.mstring -> int -> int -> Netxdr_mstring.mstring
val shared_sub_mstrings :
Netxdr_mstring.mstring list -> int -> int -> Netxdr_mstring.mstring list
val copy_mstring : Netxdr_mstring.mstring -> Netxdr_mstring.mstring
val copy_mstrings :
Netxdr_mstring.mstring list -> Netxdr_mstring.mstring list
val in_channel_of_mstrings :
Netxdr_mstring.mstring list -> Netchannels.in_obj_channel
val mstrings_of_in_channel :
Netchannels.in_obj_channel -> Netxdr_mstring.mstring list
type named_mstring_factories =
(string, Netxdr_mstring.mstring_factory) Stdlib.Hashtbl.t
end