updateOfflineRegionMetadata method
Replaces the metadata of the offline region regionId.
See mln_runtime_update_offline_region_metadata in the
C API reference.
Errors:
Status.notFoundwhen the cache file has no regionregionId.
Implementation
Future<OfflineRegionInfo> updateOfflineRegionMetadata(
int regionId,
Uint8List metadata,
) => _query(_resultOfflineRegionInfo, (arena, completion) {
final bytesmetadata = nativeBufferView(metadata, arena);
return raw.mln_runtime_update_offline_region_metadata(
_handle.raw,
regionId,
bytesmetadata.data.cast(),
bytesmetadata.size,
completion,
nativeDiagnostic,
);
});