writeByte method

int writeByte(
  1. int b
)

Writes a byte b.

Implementation

int writeByte(int b) {
  if (_bitsBufferLength == 0) {
    _bytesBuffer.writeByte(b & 0xFF);
    return 1;
  }

  writeBits(b, 8);
  return 1;
}