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

x/dax/src/deps.ts>Buffer#bytes

Cross platform shell tools for Deno inspired by zx.
Very Popular
Go to Latest
method Buffer.prototype.bytes
import { Buffer } from "https://deno.land/x/dax@0.34.0/src/deps.ts";

Returns a slice holding the unread portion of the buffer.

The slice is valid for use only until the next buffer modification (that is, only until the next call to a method like read(), write(), reset(), or truncate()). If options.copy is false the slice aliases the buffer content at least until the next buffer modification, so immediate changes to the slice will affect the result of future reads.

Parameters

optional
options = [UNSUPPORTED]

Returns

Uint8Array