Creates a BERElement 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: BERElement[] result; size_t i = 0u; while (i < bytes.length) result ~= new BERElement(i, bytes); // Encoding looks like: ubyte[] result; foreach (bv; bervalues) { result ~= cast(ubyte[]) bv; }
See Implementation
Creates a BERElement 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.