Creates a BAPERElement from the supplied bytes, inferring that the first byte is the type tag. The supplied ubyte[] array is read, starting from the index specified by bytesRead, and increments bytesRead by the number of bytes read.
All of the same exceptions as fromBytes()
// Decoding looks like: BAPERElement[] result; size_t i = 0u; while (i < bytes.length) result ~= new BAPERElement(i, bytes); // Encoding looks like: ubyte[] result; foreach (bv; bervalues) { result ~= cast(ubyte[]) bv; }
See Implementation
Creates a BAPERElement from the supplied bytes, inferring that the first byte is the type tag. The supplied ubyte[] array is read, starting from the index specified by bytesRead, and increments bytesRead by the number of bytes read.