writeWritables method
Writes a list
of Writable.
- If
leb128
istrue
will use writeLeb128UnsignedInt to write the size of thelist
.
Implementation
int writeWritables(Iterable<Writable> list, {bool leb128 = false}) {
var length = list.length;
bytesIO.ensureCapacity(position + 4 + (length * 8));
int sz;
if (leb128) {
sz = writeLeb128UnsignedInt(length);
} else {
sz = writeUint32(length);
}
for (var e in list) {
sz += e.writeTo(this);
}
return sz;
}