NumberEncoder/NumberDecoder with API similar to TextEncoder/TextDecoder.
encoding:
const number = ...;
const encoder = new NumberEncoder("Uint32");
const bytes = encoder.encode(number);
decoding:
const bytes = ...;
const decoder = new NumberDecoder("Uint32");
const number = decoder.decode(bytes);
supported "types":
"Int8"
,"Int16"
,"Int32"
"Uint8"
,"Uint16"
,"Uint32"
"Float32"
,"Float64"