writeFrom method
Writes length
bytes from src
.
Implementation
int writeFrom(BytesBuffer src, [int? length]) {
length ??= src.remaining;
final pos = bytesIO.position;
bytesIO.ensureCapacity(pos + length);
return bytesIO.writeFrom(src.bytesIO, length);
}