A chunk of "alchemy memory" for storing IEEE 754 single-precision floating point numbers.
Constructor
Variables
Methods
inline getAddr (i:Int):Int
Returns the memory byte offset of the first byte storing the float at index i.
Static methods
staticofArray (input:Array<Float>, ?min:Int, ?max:Int):FloatMemory
Converts input in the range [min, max] to a FloatMemory object.
If no range is specified, all input values are copied.
Parameters:
min | index pointing to the first float. |
|---|---|
max | index pointing to the last float. |
staticofByteArray (input:ByteArray, ?min:Int, ?max:Int):FloatMemory
Converts input in the range [min, max] to a FloatMemory object.
If no range is specified, all input` bytes are copied.
Parameters:
min | index pointing to the byte storing the first float. |
|---|---|
min | index pointing to the byte storing the last float. |
staticofBytesData (input:BytesData, ?min:Int, ?max:Int):FloatMemory
Converts input in the range [min, max] to a FloatMemory object.
If no range is specified, all input` bytes are copied.
Parameters:
min | index pointing to the byte storing the first float. |
|---|---|
min | index pointing to the byte storing the last float. |
staticofVector (input:Vector<Float>, ?min:Int, ?max:Int):FloatMemory
Converts input in the range [min, max] to a FloatMemory object.
If no range is specified, all input values are copied.
Parameters:
min | index pointing to the first float. |
|---|---|
max | index pointing to the last float. |
statictoArray (input:FloatMemory, ?min:Int, ?max:Int):Array<Float>
Converts input in the range [min, max] to an array.
If no range is specified, all input bytes are copied.
Parameters:
min | index pointing to the first float. |
|---|---|
max | index pointing to the last float. |
statictoByteArray (input:FloatMemory, ?min:Int, ?max:Int):ByteArray
Converts input in the range [min, max] to a byte array.
If no range is specified, all input bytes are copied.
The bytes are written in little endian format.
Parameters:
min | index pointing to the first float. |
|---|---|
max | index pointing to the last float. |
statictoBytesData (input:FloatMemory, ?min:Int, ?max:Int):BytesData
Converts input in the range [min, max] to a BytesData object.
If no range is specified, all input bytes are copied.
Parameters:
min | index pointing to the first float. |
|---|---|
max | index pointing to the last float. |
statictoVector (input:FloatMemory, ?min:Int, ?max:Int, ?out:Vector<Float>):Vector<Float>
Converts input in the range [min, max] to a vector object.
If no range is specified, all input bytes are copied.
Parameters:
min | index pointing to the first float. |
|---|---|
max | index pointing to the last float. |
out | the |