writeBytesLeb128Block method
Writes a Leb128 block
to this bytes instance.
Implementation
void writeBytesLeb128Block(List<BytesEmitter> 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 {
writeAllBytes(block);
}
}