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