22 return result.
value >= 0;
27 return result.
value < 0;
196 mDescription(description),
225 return mLegacy.description;
234 return mLegacy.level;
243 return mLegacy.module;
252 return mLegacy.summary;
258 operator bool()
const 266 result.
value = mValue;
272 return mValue == other.mValue;
277 return mValue != other.mValue;
283 uint32_t description : 10;
284 uint32_t summary : 4;
288 uint32_t signature : 2;
292 uint32_t mDescription : 20;
293 uint32_t mModule : 9;
303 #endif // ifdef __cplusplus
Result value type used by nn libraries.
static int NNResult_IsSuccess(NNResult result)
bool operator!=(const Result &other) const
bool operator==(const Result &other) const
Result(const NNResult &result)
unsigned GetSummary() const
static int NNResult_IsFailure(NNResult result)
struct NNResult NNResult
C equivalent of the C++ nn::Result.
Result(Level level, Module module, unsigned description)
unsigned GetModule() const
unsigned GetDescription() const