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