checkpoint method

Begins trusted host bookkeeping that must be committed or rolled back.

Implementation

ChatUtf8LineBudgetCheckpoint checkpoint() {
  final checkpoint = ChatUtf8LineBudgetCheckpoint._(
    owner: _checkpointOwner,
    totalBytes: _totalBytes,
    totalLines: _totalLines,
    previousWasCR: _previousWasCR,
    finished: _finished,
    omitted: _omitted,
    pendingHighSurrogate: _pendingHighSurrogate,
  );
  _activeCheckpoints.add(checkpoint);
  return checkpoint;
}