writeByte method

  1. @override
int writeByte(
  1. int b
)
override

Writes 1 byte. Increments position by 1.

Implementation

@override
int writeByte(int b) {
  ensureCapacity(_position + 1);
  _ioSyncPosition();
  _ioWriteByte(b);
  incrementPosition(1);
  assert(_position == _ioPosition);
  return 1;
}