...

Text file src/github.com/google/flatbuffers/ts/flexbuffers/flexbuffers-util.ts

Documentation: github.com/google/flatbuffers/ts/flexbuffers

     1export function fromUTF8Array(data: BufferSource): string {
     2  const decoder = new TextDecoder();
     3  return decoder.decode(data);
     4}
     5
     6export function toUTF8Array(str: string) : Uint8Array {
     7  const encoder = new TextEncoder();
     8  return encoder.encode(str);
     9}

View as plain text