This module extends Base.Bytes
.
include sig ... end
val bin_t : t Bin_prot.Type_class.t
val bin_read_t : t Bin_prot.Read.reader
val __bin_read_t__ : (Core_kernel__.Import.int ‑> t) Bin_prot.Read.reader
val bin_reader_t : t Bin_prot.Type_class.reader
val bin_size_t : t Bin_prot.Size.sizer
val bin_write_t : t Bin_prot.Write.writer
val bin_writer_t : t Bin_prot.Type_class.writer
val bin_shape_t : Bin_prot.Shape.t
val typerep_of_t : t Typerep_lib.Std.Typerep.t
val typename_of_t : t Typerep_lib.Std.Typename.t
include module type of sig ... end with type t := t
val t_of_sexp : Base.Sexp.t ‑> t
val sexp_of_t : t ‑> Base.Sexp.t
val blit : (t, t) Base__.Blit_intf.blit
val blito : (t, t) Base__.Blit_intf.blito
val unsafe_blit : (t, t) Base__.Blit_intf.blit
val sub : (t, t) Base__.Blit_intf.sub
val subo : (t, t) Base__.Blit_intf.subo
val clamp : t ‑> min:t ‑> max:t ‑> t Base.Or_error.t
val comparator : (t, comparator_witness) Base.Comparator.comparator
val validate_lbound : min:t Base.Maybe_bound.t ‑> t Base.Validate.check
val validate_ubound : max:t Base.Maybe_bound.t ‑> t Base.Validate.check
val validate_bound : min:t Base.Maybe_bound.t ‑> max:t Base.Maybe_bound.t ‑> t Base.Validate.check
val of_string : string ‑> t
val to_string : t ‑> string
val pp : Base.Formatter.t ‑> t ‑> unit
module To_string = Base__Bytes.To_string
module From_string = Base__Bytes.From_string
val create : int ‑> t
val make : int ‑> char ‑> t
val init : int ‑> f:(int ‑> char) ‑> t
val of_char_list : char list ‑> t
val length : t ‑> int
val get : t ‑> int ‑> char
external unsafe_get : t ‑> int ‑> char = "%bytes_unsafe_get"
val set : t ‑> int ‑> char ‑> unit
external unsafe_set : t ‑> int ‑> char ‑> unit = "%bytes_unsafe_set"
val fill : t ‑> pos:int ‑> len:int ‑> char ‑> unit
val tr : target:char ‑> replacement:char ‑> t ‑> unit
val to_list : t ‑> char list
val contains : ?pos:int ‑> ?len:int ‑> t ‑> char ‑> bool
val unsafe_to_string : no_mutation_while_string_reachable:t ‑> string
val unsafe_of_string_promise_no_mutation : string ‑> t
val gen' : Core_kernel__.Import.char Core_kernel.Quickcheck.Generator.t ‑> t Core_kernel.Quickcheck.Generator.t
Like gen
, but generate bytes with the given distribution of characters.
val gen_with_length : Core_kernel__.Import.int ‑> Core_kernel__.Import.char Core_kernel.Quickcheck.Generator.t ‑> t Core_kernel.Quickcheck.Generator.t
Like gen'
, but generate bytes with the given length.
module Stable : sig ... end
Note that bytes
is already stable by itself, since as a primitive type it is an
integral part of the sexp / bin_io protocol. Bytes.Stable
exists only to provide
interface uniformity with other stable types.