nanolith
Version:
Multi-threading in no time with seamless TypeScript support.
1 lines • 333 B
JavaScript
import{encodeValue}from"../shared_map/utilities.js";export var Bytes;!function(e){e[e.byte=1]="byte",e[e.kilobyte=1024]="kilobyte",e[e.megabyte=1048576]="megabyte"}(Bytes||(Bytes={}));export const ENCODER=new TextEncoder;export const DECODER=new TextDecoder;export const NULL=null;export const NULL_ENCODED=encodeValue(ENCODER,null);