WasmLitFloatAlloc<L extends TypedDataList, P extends WasmSizedPointer<double>> class
- Inheritance
-
- Mixed-in types
-
Properties
-
allocatorFunc
→ int Function([int count])
-
Allocates
count elements and returns the raw source pointer.
finalinherited
-
asDartList
↔ List<num> Function(int ptr, int length)
-
Returns a Dart
List<X> view over length elements starting at ptr,
backed directly by the underlying memory, no copy is made.
getter/setter pairinherited
-
asView
→ L Function(int ptr, int length)
-
Wraps
ptr as a Dart TypedDataList of length elements.
finalinherited
-
byteSize
→ int
-
Size in bytes of a single element this allocator manages.
finalinherited
-
freeFunc
→ void Function(int ptr)
-
Frees the memory at
ptr.
finalinherited
-
fromBuffer
→ L Function(ByteBuffer buffer, int offsetInBytes, int length)
-
Wraps a region of
buffer as a Dart L list without copying.
finalinherited
-
fromList
→ L Function(Iterable<num> list)
-
Constructs a typed list
L from an iterable of X values.
finalinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
indexSetterFunc
↔ Object? Function(P ptr, int i, num value)
-
getter/setter pairinherited
-
isPointerNull
→ bool Function(P ptr)
-
Returns
true if ptr is null or zero.
finalinherited
-
literalSetterFunc
↔ Object? Function(P ptr, num value)
-
getter/setter pairinherited
-
name
→ String
-
Debug name for this allocator, used in logging and diagnostics.
finalinherited
-
nullptrFactory
→ P Function()
-
Returns a null/zero pointer of type
P.
finalinherited
-
pointerFactory
→ P Function(int ptr)
-
Wraps a source pointer
ptr into the platform pointer type P.
finalinherited
-
pointerToSource
→ int Function(P ptr)
-
Unwraps a platform pointer
ptr back to its source type S.
finalinherited
-
printerFunc
→ String Function(P ptr)
-
Returns a human-readable string representation of
ptr.
finalinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
slots
→ Map<String, (P, int)>
-
Active allocation slots, keyed by slot name.
Each entry holds the pointer and its element count.
finalinherited
-
temp
→ RaylibTemp
-
finalinherited
Methods
-
Array(List<num> array, {String? key})
→ P
-
Writes
array into a slot of sufficient capacity and returns the pointer.
inherited
-
At(String key, [int count = 1])
→ P
-
Returns the
P stored in key, allocating (or reallocating)
if necessary.
inherited
-
AtUnique(String key, [int count = 1])
→ P
-
Allocates (or reuses) a slot identified by a unique
key suffix.
inherited
-
Copy(int src, int length, {String? key})
→ P
-
Copies
length elements from src into a slot and returns the pointer.
inherited
-
dispose()
→ void
-
Frees all currently tracked slots and clears the slot table.
inherited
-
Fill(int count, num init(int), {String? key})
→ P
-
Allocates (or reuses) a slot of
count elements, populating each index
i with the value returned by init(i).
inherited
-
Free(String key)
→ void
-
Frees the native memory owned by slot
key and removes it from the
table.
inherited
-
FromTypedData(TypedData data, {String? key})
→ P
-
Copies
data into a slot by reinterpreting its bytes as elements of type X.
inherited
-
FromTypedList(L list, {String? key})
→ P
-
Copies
length elements from a typed list list into a slot.
inherited
-
Has(String key)
→ bool
-
Returns
true if a slot with the given key exists.
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
Raw([int count = 1])
→ P
-
Allocates
count raw elements and returns the wrapped pointer.
inherited
-
RawArray(List<num> array)
→ P
-
Allocates an unslotted array.
inherited
-
RawArrayPopulated(List<num> array)
→ P
-
Allocates an unslotted array and populates it from
array.
inherited
-
Ref1([num? o])
→ P
-
Writes
o into slot '1' and returns its pointer.
inherited
-
Ref2([num? o])
→ P
-
Writes
o into slot '2' and returns its pointer.
inherited
-
Ref3([num? o])
→ P
-
Writes
o into slot '3' and returns its pointer.
inherited
-
Ref4([num? o])
→ P
-
Writes
o into slot '4' and returns its pointer.
inherited
-
RefOrNull1(num? o)
→ P
-
Writes
o into slot '1' and returns its pointer, or returns nullptr
if o is null.
inherited
-
RefOrNull2(num? o)
→ P
-
Writes
o into slot '2' and returns its pointer, or returns nullptr
if o is null.
inherited
-
RefOrNull3(num? o)
→ P
-
Writes
o into slot '3' and returns its pointer, or returns nullptr
if o is null.
inherited
-
RefOrNull4(num? o)
→ P
-
Writes
o into slot '4' and returns its pointer, or returns nullptr
if o is null.
inherited
-
signature()
→ String
-
Returns a string that identifies the concrete type of this allocator,
including its type parameters.
inherited
-
Size([int count = 1])
→ int
-
Returns the total byte size for
count elements.
inherited
-
Sized(int length, {String? key})
→ P
-
Allocates (or reuses) a slot of
length elements and returns its pointer,
without writing any data into it.
inherited
-
Slot(String key)
→ P?
-
Returns the pointer stored under
key, or null if the slot does not
exist. Does not allocate.
inherited
-
slotKey([String? key])
→ String
-
Returns the canonical slot key for
key, falling back to 'struct'
when key is null.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
uniqueSlotKey(String key)
→ String
-
Returns a slot key guaranteed to be unique within this temp context,
by prefixing
key with the next available ID.
inherited
-
Unslot(String key)
→ void
-
Removes the slot entry for
key from the table without freeing the
underlying memory.
inherited
-
Value([num? value, String? key])
→ P
-
Returns the pointer for the slot identified by
key (default: 'struct'),
writing value into it when provided.
inherited