package graphv_webgl

  1. Overview
  2. Docs

Module Buffer.UByteSource

Sourceval set : t -> int -> int -> unit

set t off value will set the value at offset off in the buffer.

Sourceval get : t -> int -> int

get t off will return the value at offset off.

Sourceval length : t -> int

Return the number of elements in the buffer.

Sourceval sub : t -> int -> int -> t

sub t off len will create a sub array starting at offset off with length len. This operation does not copy any array values.

Sourceval create : int -> t

Creates a new buffer. The buffer is initialized with zeros.

Sourceval empty : t

The empty buffer. Can be used as a placeholder value. Has size 0.