Derived classes must define setValue(<T>) and
<T> getValue() methods which write to/read from the
allocated memory.
This class derives from PointerType instead of Memory in order to restrict
the API to only getValue/setValue.
Note
this class would ideally be replaced by a generic.
| Access | Constructor and Description |
|---|---|
| protected | ByReference(int
The number of bytes to allocate. Must match the byte size of
dataSize)T in the derived class
setValue(<T>) and
<T> getValue() methods.Allocates memory at this pointer, to contain the pointed-to value. |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides com. |
| ByReference | back to summary |
|---|---|
| protected ByReference(int dataSize) Allocates memory at this pointer, to contain the pointed-to value.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Doc from java. Returns a string representation of the object. | |