TreeSitterCBufferIterator<T> class
final
An owning iterator over a C-style buffer and explicit element count.
dispose is the deterministic Dart counterpart of Rust's Drop. It calls
the current global free callback once for a non-null buffer, matching the
pinned CBufferIter implementation's use of FREE_FN at drop time.
- Implemented types
-
- Iterator<
T>
- Iterator<
- Available extensions
Constructors
-
TreeSitterCBufferIterator(List<
T> ? buffer, int count)
Properties
- current → T
-
The current element.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- remaining → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sizeHint → ({int lower, int? upper})
-
Rust-compatible
(lower, upper)remaining-length bounds.no setter -
toJSIterator
→ JSIterator<
T> -
Available on Iterator<
A JSIterator wrapper that proxies to the Dart iterator API.T> , provided by the IteratorToJSIterator extensionno setter
Methods
-
dispose(
) → void - Releases ownership once. Repeated calls are no-ops.
-
moveNext(
) → bool -
Advances the iterator to the next element of the iteration.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited