API
InteractorCallโ
class InteractorCall {
get int id
get int outputSize
get bool outputBool
get int outputInt
get double outputDouble
get List<int> outputBuffer
get List<int> outputBytes
void setInputInt(int data)
void setInputBool(bool data)
void setInputDouble(double data)
void setInputString(String data)
void setInputObject<T extends Struct>(void Function(Pointer<T> object)? configurator)
Future<void> setInputBuffer(List<int> bytes) async
void setInputBytes(List<int> bytes)
void allocateOutputDouble()
void allocateOutputString(int size)
Future<void> allocateOutputBuffer(int size) async
void allocateOutputBytes(int size)
String getOutputString({int? length})
Pointer<T> getOutputObject<T extends Struct>()
T parseOutputObject<T, O extends Struct>(T Function(Pointer<O> object) mapper)
void releaseInputDouble()
void releaseInputString()
void releaseInputObject<T extends Struct>()
void releaseInputBuffer()
void releaseInputBytes()
void releaseOutputDouble()
void releaseOutputString()
void releaseOutputObject<T extends Struct>()
void releaseOutputBuffer()
void releaseOutputBytes()
void release()
}
idโ
Get call message ID.
outputSizeโ
Get call message output size.
outputBoolโ
Parse call message output to bool.
outputIntโ
Parse call message output to int.
outputDoubleโ
Parse call message output to double.
outputBufferโ
Parse call message output to buffer (from the buffer pool).
outputBytesโ
Parse call message output to bytes.
setInputIntโ
Set call input int value.
setInputBoolโ
Set call input bool value.
setInputDoubleโ
Set call input double value.
setInputStringโ
Set call input string value.
setInputObjectโ
Set call input Dart FFI value.
setInputBufferโ
Set call input bytes (from the buffer pool).
allocateOutputDoubleโ
Allocate call output double value (from the data pool).
allocateOutputStringโ
Allocate call output string value (from the data pool).
allocateOutputBufferโ
Allocate call output buffer (from the buffer pool).
allocateOutputBytesโ
Allocate call output buffer (from the data pool).
getOutputStringโ
Parse call message string output value.
getOutputObjectโ
Parse call message Dart FFI output value.
parseOutputObjectโ
Parse call message Dart object output value by the mapper.
There are release functions for call (look at the allocators and setters and match):โ
- releaseInputDouble
- releaseInputString
- releaseInputObject
- releaseInputBuffer
- releaseInputBytes
- releaseOutputDouble
- releaseOutputString
- releaseOutputObject
- releaseOutputBuffer
- releaseOutputBytes
releaseโ
Release the memory allocated for the call message native structure.