Up

module Typed_array

: sig

Typed Array binding

#
class type arrayBuffer =
#
method byteLength : int Js.readonly_prop
#
val arrayBuffer : (int -> arrayBuffer Js.t) Js.constr
#
class type arrayBufferView =
#
method buffer : arrayBuffer Js.t Js.readonly_prop
#
method byteOffset : int Js.readonly_prop
#
method byteLength : int Js.readonly_prop
#
class type ['a, 'b] typedArray =
inherit arrayBufferView
#
method _BYTES_PER_ELEMENT : int Js.readonly_prop
#
method length : int Js.readonly_prop
#
method set_fromArray : 'a Js.js_array Js.t -> int -> unit Js.meth
#
method set_fromTypedArray : ('a, 'b) typedArray Js.t -> int -> unit Js.meth
#
method subarray : int -> int -> ('a, 'b) typedArray Js.t Js.meth
#
method subarray_toEnd : int -> ('a, 'b) typedArray Js.t Js.meth
#
method _content_type_ : 'b
#
type int8Array = (int, [
| `Int8
]) typedArray
#
type uint8Array = (int, [
| `Uint8
]) typedArray
#
type int16Array = (int, [
| `Int16
]) typedArray
#
type uint16Array = (int, [
| `Uint16
]) typedArray
#
type int32Array = (int, [
| `Int32
]) typedArray
#
type uint32Array = (float, [
| `Uint32
]) typedArray
#
type float32Array = (float, [
| `Float32
]) typedArray
#
type float64Array = (float, [
| `Float64
]) typedArray
#
val int8Array : (int -> int8Array Js.t) Js.constr
#
val int8Array_fromArray : (int Js.js_array Js.t -> int8Array Js.t) Js.constr
#
val int8Array_fromTypedArray : (int8Array Js.t -> int8Array Js.t) Js.constr
#
val int8Array_fromBuffer : (arrayBuffer Js.t -> int8Array Js.t) Js.constr
#
val int8Array_inBuffer : (arrayBuffer Js.t -> int -> int -> int8Array Js.t) Js.constr
#
val uint8Array : (int -> uint8Array Js.t) Js.constr
#
val uint8Array_fromArray : (int Js.js_array Js.t -> uint8Array Js.t) Js.constr
#
val uint8Array_fromTypedArray : (uint8Array Js.t -> uint8Array Js.t) Js.constr
#
val uint8Array_fromBuffer : (arrayBuffer Js.t -> uint8Array Js.t) Js.constr
#
val uint8Array_inBuffer : (arrayBuffer Js.t -> int -> int -> uint8Array Js.t) Js.constr
#
val int16Array : (int -> int16Array Js.t) Js.constr
#
val int16Array_fromArray : (int Js.js_array Js.t -> int16Array Js.t) Js.constr
#
val int16Array_fromTypedArray : (int16Array Js.t -> int16Array Js.t) Js.constr
#
val int16Array_fromBuffer : (arrayBuffer Js.t -> int16Array Js.t) Js.constr
#
val int16Array_inBuffer : (arrayBuffer Js.t -> int -> int -> int16Array Js.t) Js.constr
#
val uint16Array : (int -> uint16Array Js.t) Js.constr
#
val uint16Array_fromArray : (int Js.js_array Js.t -> uint16Array Js.t) Js.constr
#
val uint16Array_fromTypedArray : (uint16Array Js.t -> uint16Array Js.t) Js.constr
#
val uint16Array_fromBuffer : (arrayBuffer Js.t -> uint16Array Js.t) Js.constr
#
val uint16Array_inBuffer : (arrayBuffer Js.t -> int -> int -> uint16Array Js.t) Js.constr
#
val int32Array : (int -> int32Array Js.t) Js.constr
#
val int32Array_fromArray : (int Js.js_array Js.t -> int32Array Js.t) Js.constr
#
val int32Array_fromTypedArray : (int32Array Js.t -> int32Array Js.t) Js.constr
#
val int32Array_fromBuffer : (arrayBuffer Js.t -> int32Array Js.t) Js.constr
#
val int32Array_inBuffer : (arrayBuffer Js.t -> int -> int -> int32Array Js.t) Js.constr
#
val uint32Array : (int -> uint32Array Js.t) Js.constr
#
val uint32Array_fromArray : (float Js.js_array Js.t -> uint32Array Js.t) Js.constr
#
val uint32Array_fromTypedArray : (uint32Array Js.t -> uint32Array Js.t) Js.constr
#
val uint32Array_fromBuffer : (arrayBuffer Js.t -> uint32Array Js.t) Js.constr
#
val uint32Array_inBuffer : (arrayBuffer Js.t -> int -> int -> uint32Array Js.t) Js.constr
#
val float32Array : (int -> float32Array Js.t) Js.constr
#
val float32Array_fromArray : (float Js.js_array Js.t -> float32Array Js.t) Js.constr
#
val float32Array_fromTypedArray : (float32Array Js.t -> float32Array Js.t) Js.constr
#
val float32Array_fromBuffer : (arrayBuffer Js.t -> float32Array Js.t) Js.constr
#
val float32Array_inBuffer : (arrayBuffer Js.t -> int -> int -> float32Array Js.t) Js.constr
#
val float64Array : (int -> float64Array Js.t) Js.constr
#
val float64Array_fromArray : (float Js.js_array Js.t -> float64Array Js.t) Js.constr
#
val float64Array_fromTypedArray : (float64Array Js.t -> float64Array Js.t) Js.constr
#
val float64Array_fromBuffer : (arrayBuffer Js.t -> float64Array Js.t) Js.constr
#
val float64Array_inBuffer : (arrayBuffer Js.t -> int -> int -> float64Array Js.t) Js.constr
#
val set : ('a, 'b) typedArray Js.t -> int -> 'a -> unit
#
val get : ('a, 'b) typedArray Js.t -> int -> 'a Js.optdef
#
val unsafe_get : ('a, 'b) typedArray Js.t -> int -> 'a
#
class type dataView =
inherit arrayBufferView
#
method getInt8 : int -> int Js.meth
#
method getUint8 : int -> int Js.meth
#
method getInt16_ : int -> bool Js.t -> int Js.meth
#
method getUint16 : int -> int Js.meth
#
method getUint16_ : int -> bool Js.t -> int Js.meth
#
method getInt32 : int -> int Js.meth
#
method getInt32_ : int -> bool Js.t -> int Js.meth
#
method getUint32 : int -> float Js.meth
#
method getUint32_ : int -> bool Js.t -> float Js.meth
#
method getFloat32 : int -> float Js.meth
#
method getFloat32_ : int -> bool Js.t -> float Js.meth
#
method getFloat64 : int -> float Js.meth
#
method getFloat64_ : int -> bool Js.t -> float Js.meth
#
method setInt8 : int -> int -> unit Js.meth
#
method setUint8 : int -> int -> unit Js.meth
#
method setInt16 : int -> int -> unit Js.meth
#
method setInt16_ : int -> int -> bool Js.t -> unit Js.meth
#
method setUint16 : int -> int -> unit Js.meth
#
method setUint16_ : int -> int -> bool Js.t -> unit Js.meth
#
method setInt32 : int -> int -> unit Js.meth
#
method setInt32_ : int -> int -> bool Js.t -> unit Js.meth
#
method setUint32 : int -> float -> unit Js.meth
#
method setUint32_ : int -> float -> bool Js.t -> unit Js.meth
#
method setFloat32 : int -> float -> unit Js.meth
#
method setFloat32_ : int -> float -> bool Js.t -> unit Js.meth
#
method setFloat64 : int -> float -> unit Js.meth
#
method setFloat64_ : int -> float -> bool Js.t -> unit Js.meth
#
val dataView : (arrayBuffer Js.t -> dataView Js.t) Js.constr
#
val dataView_inBuffer : (arrayBuffer Js.t -> int -> int -> dataView Js.t) Js.constr
end