setPos method

void setPos(
  1. int pos
)

Implementation

void setPos(int pos) {
  if (pos <= maxlen) {
    offset = pos;
  } else {
    throw MobiBufferOverflowException();
  }
}