position property

int get position

Moves, or returns the current position, in bytes, of the file pointer into the ByteArray object.

Implementation

int get position => _position;
set position (int value)

Moves, or returns the current position, in bytes, of the file pointer into the ByteArray object.

Implementation

set position(int value) {
  if (value > _bytes.length) {
    _bytes.length = value;
    _dataDirty = true;
  }
  _position = value;
}