setOutputData method
- Uint8List? outputData
Sets the the decrypted data as a binary array.
param outputData The decrypted data as a binary array. throws BiosealException An error has occurred during Bioseal Library execution.
Implementation
void setOutputData(Uint8List? outputData) {
Pointer<UnsignedChar>? pOutputData;
if (outputData != null) {
pOutputData = calloc.allocate<UnsignedChar>(outputData.length);
pOutputData.cast<Uint8>().asTypedList(outputData.length).setAll(0, outputData);
}
try {
var err = biosealSDK.id3BiosealDecryptionArgs_SetOutputData(_pHandle.value, pOutputData ?? nullptr, outputData?.length ?? 0);
if (err != BiosealError.success.value) {
throw BiosealException(err);
}
} finally {
if (pOutputData != null) {
calloc.free(pOutputData);
}
}
}