Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/bytes/mod.ts>BytesList#slice

Deno standard library
Go to Latest
method BytesList.prototype.slice
Deprecated
Deprecated

Use a plain array of Uint8Arrays instead. For copying the whole list see concat. For copying subarrays find the start and end chunk indexes and the internal indexes within those Uint8Arrays, prepare a Uint8Array of size end - start and set the chunks (or chunk subarrays) into that at proper offsets.

import { BytesList } from "https://deno.land/std@0.202.0/bytes/mod.ts";

Returns subset of bytes copied

Parameters

start: number
optional
end: number = [UNSUPPORTED]

Returns

Uint8Array