unpack a Uint8Array array of bytes. you must provide the bytesize of the bytes being decoded, otherwise the decoder will unpack till the end of the buffer