import { TextDecoder } from "util"; export function arrbufToStr(arrayBuffer : ArrayBuffer) { return new TextDecoder().decode(new Uint8Array(arrayBuffer)); } export function strToArrBuf(input : string) : Uint8Array { return new TextEncoder().encode(input) }