askarKeyEntryListCount function
- KeyEntryListHandle handle
Implementation
AskarResult<int> askarKeyEntryListCount(KeyEntryListHandle handle) {
Pointer<Int32> countPointer = calloc<Int32>();
try {
final funcResult = nativeAskarKeyEntryListCount(handle.toInt(), countPointer);
final errorCode = ErrorCode.fromInt(funcResult);
final count = (errorCode == ErrorCode.success) ? countPointer.value : 0;
return AskarResult<int>(errorCode, count);
} finally {
freePointer(countPointer);
}
}