Builder constructor
Builder({
- int size = 2048,
Instantiate the builder if you intent to gradually build up the buffer by calling add... methods and calling finish to receive the resulting byte array.
The default size of internal buffer is set to 2048. Provide a different value in order to avoid buffer copies.
Implementation
Builder({int size = 2048}) : _buffer = ByteData(size);