writeByte method

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

Writes 1 byte. Increments position by 1.

Implementation

@override
int writeByte(int b) {
  final pos = _position;
  ensureCapacity(pos + 1);

  _bytes[pos] = b;
  incrementPosition(1);

  return 1;
}