sendSegmentsTracked method

NativeWriteReceipt sendSegmentsTracked(
  1. int connectionId,
  2. List<NativeOwnedBuffer> segments
)

Reports queue acceptance and complete local write/flush, not peer delivery. Disposing the receipt does not cancel the queued frame or consume inputs.

Implementation

NativeWriteReceipt sendSegmentsTracked(
  int connectionId,
  List<NativeOwnedBuffer> segments,
) {
  final id = _ownedSegments.submit(connectionId, segments, tracked: true);
  _check(id);
  if (id == 0) throw StateError('Native writer returned no receipt');
  return NativeWriteReceipt._(this, id);
}