Module Core_kernel__.Bytes

This module extends Base.Bytes.

type t = Core_kernel__.Import.bytes
include sig ... end
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
type t = bytes
val t_of_sexp : Base.Sexp.t ‑> t
val sexp_of_t : t ‑> Base.Sexp.t
val blit : (ttBase__.Blit_intf.blit
val blito : (ttBase__.Blit_intf.blito
val unsafe_blit : (ttBase__.Blit_intf.blit
val sub : (ttBase__.Blit_intf.sub
val subo : (ttBase__.Blit_intf.subo
val (>=) : t ‑> t ‑> bool
val (<=) : t ‑> t ‑> bool
val (=) : t ‑> t ‑> bool
val (>) : t ‑> t ‑> bool
val (<) : t ‑> t ‑> bool
val (<>) : t ‑> t ‑> bool
val equal : t ‑> t ‑> bool
val compare : t ‑> t ‑> int
val min : t ‑> t ‑> t
val max : t ‑> t ‑> t
val ascending : t ‑> t ‑> int
val descending : t ‑> t ‑> int
val between : t ‑> low:t ‑> high:t ‑> bool
val clamp_exn : t ‑> min:t ‑> max:t ‑> t
val clamp : t ‑> min:t ‑> max:t ‑> t Base.Or_error.t
type comparator_witness = Base__Bytes.comparator_witness
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
val create : int ‑> t
val make : int ‑> char ‑> t
val copy : t ‑> 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 max_length : int
val unsafe_to_string : no_mutation_while_string_reachable:t ‑> string
val unsafe_of_string_promise_no_mutation : string ‑> t
include Core_kernel.Hexdump.S with type t := t
type t
module Hexdump : sig ... end
include Core_kernel.Quickcheckable.S with type t := t
type 'a gen
type 'a obs
type 'a shr
type t
val gen : t gen
val obs : t obs
val shrinker : t shr
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.