Creates a BAPERElement from the supplied bytes, inferring that the first byte is the type tag. The supplied ubyte[] array is "chomped" by reference, so the original array will grow shorter as BAPERElements are generated.
All of the same exceptions as fromBytes()
// Decoding looks like: BAPERElement[] result; while (bytes.length > 0) result ~= new BAPERElement(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 "chomped" by reference, so the original array will grow shorter as BAPERElements are generated.