The size in bytes of each element in the array.
Search the reference...
/
interface
Uint8ArrayConstructorinterface Uint8ArrayConstructorconstructor Uint8ArrayConstructor(length: number): Uint8ArrayArrayBuffer>;constructor Uint8ArrayConstructor(array: ArrayLikenumber>): Uint8ArrayArrayBuffer>;constructor Uint8ArrayConstructorTArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer,byteOffset?: number,length?: number): Uint8ArrayTArrayBuffer>;constructor Uint8ArrayConstructor(buffer: ArrayBuffer,byteOffset?: number,length?: number): Uint8ArrayArrayBuffer>;constructor Uint8ArrayConstructor(array: ArrayBuffer | ArrayLikenumber>): Uint8ArrayArrayBuffer>;constructor Uint8ArrayConstructor(elements: Iterablenumber>): Uint8ArrayArrayBuffer>;constructor (): Uint8ArrayArrayBuffer>;readonly BYTES_PER_ELEMENT: numberCreates an array from an array-like or iterable object.
An array-like object to convert to an array.
Creates an array from an array-like or iterable object.
An array-like object to convert to an array.
A mapping function to call on every element of the array.
Value of 'this' used to invoke the mapfn.
Creates an array from an array-like or iterable object.
An iterable object to convert to an array.
Creates an array from an array-like or iterable object.
An iterable object to convert to an array.
A mapping function to call on every element of the array.
Value of 'this' used to invoke the mapfn.
Create a new Uint8Array from a base64 encoded string
The base64 encoded string to convert to a Uint8Array
Optional options for decoding the base64 string
A new Uint8Array containing the decoded data
Create a new Uint8Array from a hex encoded string
The hex encoded string to convert to a Uint8Array
A new Uint8Array containing the decoded data
Returns a new array from a set of elements.
A set of elements to include in the new array object.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →interface Uint8ArrayConstructor | globals module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for interface globals.Uint8ArrayConstructor | Bun