add method
Add a byte array to the buffer.
Set copy
to true if bytes
need to be copied (e.g. the underlying
buffer will be modified.)
Implementation
void add(List<int> bytes, {bool? copy}) {
_chunks.add(castBytes(bytes, copy: copy ?? _copy));
_length += bytes.length;
}