ParamDescriptor class abstract
Declares one command's parameter and result fields.
The vocabulary is DataDescriptor's, on purpose: a game that knows how to
lay out a component already knows how to lay out a command, and the two
really are the same problem - a fixed-width, bit-packed record. What is
deliberately absent is anything variable-length: a command record has a
stride, exactly like an archetype row, so a String or a List field
declares its capacity up front and a value that does not fit is an error
rather than a resize.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
hasEntity(
) → ParamPointer< Entity> - A field holding an Entity handle - the same signed 64-bit storage hasInt64 gives, with the type saying what the field holds.
-
hasFloat32(
[double defaultValue = 0]) → ParamPointer< double> -
hasFloat64(
[double defaultValue = 0]) → ParamPointer< double> -
hasInt16(
[int defaultValue = 0]) → ParamPointer< int> -
hasInt32(
[int defaultValue = 0]) → ParamPointer< int> -
hasInt64(
[int defaultValue = 0]) → ParamPointer< int> -
hasInt8(
[int defaultValue = 0]) → ParamPointer< int> -
hasString(
int maxBytes, {Encoding encoding = utf8}) → ParamPointer< String> -
A UTF-8 string of at most
maxBytesbytes - not characters, since that is what the buffer actually reserves and a caller sizing a field should be thinking in the unit that can overflow. -
hasUint1(
[int defaultValue = 0]) → ParamPointer< int> -
hasUint16(
[int defaultValue = 0]) → ParamPointer< int> -
hasUint2(
[int defaultValue = 0]) → ParamPointer< int> -
hasUint32(
[int defaultValue = 0]) → ParamPointer< int> -
hasUint4(
[int defaultValue = 0]) → ParamPointer< int> -
hasUint8(
[int defaultValue = 0]) → ParamPointer< int> -
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