39 return result.
value >= 0;
56 return result.
value < 0;
232 mValue(((level & 0x7) << 29) | ((module & 0x1FF) << 20) | (description & 0xFFFFF))
276 return mValue & (
IsLegacy() ? 0x3FF : 0xFFFFF);
282 return (mValue << 14) >> 28;
290 return (mValue >> 20) & (
IsLegacy() ? 0x7F : 0x1FF);
296 return (mValue >> 10) & 0xF;
302 operator bool()
const
310 result.
value = mValue;
316 return mValue == other.mValue;
321 return mValue != other.mValue;
Result value type used by nn libraries.
@ SUMMARY_NOTHING_HAPPENED
@ SUMMARY_INVALID_ARGUMENT
@ SUMMARY_OUT_OF_RESOURCE
bool IsSuccess() const
Determine if the Result instance represents a successful state.
unsigned GetDescription() const
bool IsFailure() const
Determine if the Result instance represents a failure.
@ RESULT_MODULE_NN_CONNTEST
@ RESULT_MODULE_NN_DRMAPP
@ RESULT_MODULE_NN_TELNET
unsigned GetModule() const
Result(Level level, Module module, unsigned description)
bool operator!=(const Result &other) const
bool operator==(const Result &other) const
Result(const NNResult &result)
unsigned GetSummary() const
@ MODULE_NN_LOADER_SERVER
int32_t value
Aggregate value of result bitfield.
static int NNResult_IsFailure(NNResult result)
Determine if a NNResult represents a failure.
static int NNResult_IsSuccess(NNResult result)
Determine if a NNResult represents a successful state.
Result structure for nn libraries.