load method
- Uint8List? manifestData
Loads the manifest.
param manifestData The manifest data. throws BiosealException An error has occurred during Bioseal Library execution.
Implementation
void load(Uint8List? manifestData) {
Pointer<UnsignedChar>? pManifestData;
if (manifestData != null) {
pManifestData = calloc.allocate<UnsignedChar>(manifestData.length);
pManifestData.cast<Uint8>().asTypedList(manifestData.length).setAll(0, manifestData);
}
try {
var err = biosealSDK.id3BiosealManifest_Load(_pHandle.value, pManifestData ?? nullptr, manifestData?.length ?? 0);
if (err != BiosealError.success.value) {
throw BiosealException(err);
}
} finally {
if (pManifestData != null) {
calloc.free(pManifestData);
}
}
}