import { Uint8Deque } from "https://deno.land/x/typeddeque@v0.3.0/mod.ts";
A variable length array of 8-bit unsigned integers.
Methods
Returns the element at the given index. Returns undefined
if the given
index can not be found.
Determines whether a Uint8Deque
includes a certain element.
Returns the first index at which a given element can be found in the
Uint8Deque
, or -1 if it is not present.
Appends the given array to the end of the Uint8Deque
, and returns the
new length
of the Uint8Deque
. This will not create a new buffer,
changes to the given array will impact the Uint8Deque
and vice versa.
Returns a new typed array that contains a copy of a portion of the
Uint8Deque
from start
up to but not including end
.
A negative index can be used, indicating an offset from the end.
An empty array is returned if start >= end
.