allocateIfNeeded method

void allocateIfNeeded(
  1. int bits
)

Implementation

void allocateIfNeeded(int bits) {
  if (_written + bits > _buffer.getSize()) {
    _buffer.allocate(bits);
  }
}