writeLeb128Block method
Writes a Leb128 block
to this bytes instance.
Implementation
void writeLeb128Block(List<List<int>> block, {String? description}) {
var blockSize = Leb128.encodeUnsigned(block.expandedLength);
_data.add(BytesEmitter(data: blockSize, description: "Bytes block length"));
if (description != null) {
_data.add(BytesEmitter(data: block, description: description));
} else {
writeAll(block);
}
}