pushByte method

  1. @override
void pushByte(
  1. int byte
)
override

Write a single byte to the output.

Implementation

@override
void pushByte(int byte) {
  if (cursor >= _buffer.length) {
    _buffer.add(byte);
    cursor++;
    return;
  }
  _buffer[cursor++] = byte;
}