Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Binding to Uint8Array. Compatible with >= ES6 only
include TYPED_ARRAY
with type elt = int
and type t = Js_of_ocaml.Typed_array.uint8Array Js_of_ocaml.Js.t
include JS_OBJECT
with type t = Js_of_ocaml.Typed_array.uint8Array Js_of_ocaml.Js.t
val of_js : Js_of_ocaml.Js.Unsafe.any -> t
val to_any_js : t -> Js_of_ocaml.Js.Unsafe.any
val to_string : t -> string
Equivalent to toString
on the object in JavaScript
val create : ?offset:Number.t -> ?length:Number.t -> ArrayBuffer.t -> t
val buffer : t -> ArrayBuffer.t
buffer a
returns the underlying buffer of the array. Equivalent to a.buffer
in JavaScript
byte_length a
returns the number of bytes of the typed array. Equivalent to a.byteLength
in JavaScript
val to_bytes : t -> bytes
Convert to bytes