TextDecoder
utils • Docs
near-sdk-js v2.0.0 / utils / TextDecoder
Class: TextDecoder
A subset of NodeJS TextDecoder API. Only support utf-8 and latin1 encoding.
Constructors
new TextDecoder()
new TextDecoder(
encoding
):TextDecoder
Parameters
• encoding: string
= "utf-8"
Returns
Defined in
packages/near-sdk-js/src/utils.ts:308
Properties
encoding
encoding:
string
="utf-8"
Defined in
packages/near-sdk-js/src/utils.ts:308
Methods
decode()
decode(
a
):string
Parameters
• a: Uint8Array
Returns
string
Defined in
Last updated