getManifestUrl method
Gets the the URL to the manifest.
return The URL to the manifest. throws BiosealException An error has occurred during Bioseal Library execution.
Implementation
String getManifestUrl() {
Pointer<Char> pManifestUrl = nullptr;
Pointer<Int> pManifestUrlSize = calloc.allocate(1);
pManifestUrlSize[0] = -1;
try {
var err = biosealSDK.id3Bioseal_GetManifestUrl(_pHandle.value, pManifestUrl, pManifestUrlSize);
if (err == BiosealError.insufficientBuffer.value) {
pManifestUrl = calloc.allocate(pManifestUrlSize.value);
err = biosealSDK.id3Bioseal_GetManifestUrl(_pHandle.value, pManifestUrl, pManifestUrlSize);
if (err != BiosealError.success.value) {
throw BiosealException(err);
}
}
final vManifestUrl = utf8.decode(Uint8List.fromList(pManifestUrl.cast<Uint8>().asTypedList(pManifestUrlSize.value)));
return vManifestUrl;
} finally {
calloc.free(pManifestUrl);
calloc.free(pManifestUrlSize);
}
}