VtAllocator class final

Native allocator bridge for advanced libghostty-vt usage.

VtAllocator.dartMalloc uses Dart's malloc/free underneath and can be passed to raw generated bindings that accept a GhosttyAllocator*.

Most callers should use the higher-level helpers on VtTerminalFormatter instead of interacting with this directly.

Properties

hashCode int
The hash code for this object.
no setterinherited
pointer Pointer<GhosttyAllocator>
Native allocator pointer suitable for generated bindings.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyBytesAndFree(Pointer<Uint8> ptr, int len) Uint8List
Copies len bytes from ptr into Dart-managed memory and frees ptr.
freePointer(Pointer<Void> ptr) → void
Frees a pointer allocated by this allocator.
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

Static Properties

dartMalloc VtAllocator
Allocator backed by Dart's malloc/free.
final