Implements isomorphic encode.
Given a string, creates an Uint8Array of the same length with the string codepoints as byte values.
Uint8Array
Accepts only isomorphic string input and asserts that, throwing on any strings containing codepoints higher than U+00FF.
U+00FF
An Uint8Array containing the input bytes.
Implements isomorphic encode.
Given a string, creates an
Uint8Arrayof the same length with the string codepoints as byte values.Accepts only isomorphic string input and asserts that, throwing on any strings containing codepoints higher than
U+00FF.