package ocamlnet

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type !_ tstring_kind =
  1. | String_kind : string tstring_kind
  2. | Bytes_kind : Bytes.t tstring_kind
  3. | Memory_kind : Netsys_types.memory tstring_kind
type !'t tstring_ops = {
  1. kind : 't tstring_kind option;
  2. length : 't -> int;
  3. get : 't -> int -> char;
  4. unsafe_get : 't -> int -> char;
  5. unsafe_get3 : 't -> int -> int;
  6. copy : 't -> 't;
  7. string : 't -> string;
  8. bytes : 't -> Bytes.t;
  9. sub : 't -> int -> int -> 't;
  10. substring : 't -> int -> int -> string;
  11. subbytes : 't -> int -> int -> Bytes.t;
  12. subpoly : 'u. 'u tstring_kind -> 't -> int -> int -> 'u;
  13. blit_to_bytes : 't -> int -> Bytes.t -> int -> int -> unit;
  14. blit_to_memory : 't -> int -> Netsys_types.memory -> int -> int -> unit;
  15. index_from : 't -> int -> char -> int;
  16. index_from3 : 't -> int -> int -> char -> char -> char -> int;
  17. rindex_from : 't -> int -> char -> int;
  18. rindex_from3 : 't -> int -> int -> char -> char -> char -> int;
}
type tstring_ops_box =
  1. | Tstring_ops_box : 't tstring_kind * 't tstring_ops -> tstring_ops_box
type tstring_box =
  1. | Tstring_box : 't tstring_kind * 't tstring_ops * 't -> tstring_box
type tstring_polybox =
  1. | Tstring_polybox : 't tstring_ops * 't -> tstring_polybox
val string_ops : string tstring_ops
val bytes_ops : Bytes.t tstring_ops
val ops_of_tstring : Netsys_types.tstring -> tstring_ops_box
type !'a with_fun = {
  1. with_fun : 's. 's tstring_ops -> 's -> 'a;
}
val with_tstring : 'a with_fun -> Netsys_types.tstring -> 'a
val length_tstring : Netsys_types.tstring -> int
val tstring_of_tbuffer : Netsys_types.tbuffer -> Netsys_types.tstring
val polymorph_string_transformation : (string -> string) -> 's tstring_ops -> 't tstring_kind -> 's -> 't
val bytes_subpoly : 'u tstring_kind -> Bytes.t -> int -> int -> 'u
OCaml

Innovation. Community. Security.