Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
DecodingResult Class Reference

Returns a decoding results. More...

#include <cryptlib.h>

Public Member Functions

 DecodingResult ()
 Constructs a DecodingResult. More...
 
 DecodingResult (size_t len)
 Constructs a DecodingResult. More...
 
bool operator== (const DecodingResult &rhs) const
 Compare two DecodingResult. More...
 
bool operator!= (const DecodingResult &rhs) const
 Compare two DecodingResult. More...
 

Public Attributes

bool isValidCoding
 Flag to indicate the decoding is valid. More...
 
size_t messageLength
 Recovered message length if isValidCoding is true, undefined otherwise. More...
 

Detailed Description

Returns a decoding results.

Definition at line 238 of file cryptlib.h.

Constructor & Destructor Documentation

DecodingResult::DecodingResult ( )
inlineexplicit

Constructs a DecodingResult.

isValidCoding is initialized to false and messageLength is initialized to 0.

Definition at line 242 of file cryptlib.h.

DecodingResult::DecodingResult ( size_t  len)
inlineexplicit

Constructs a DecodingResult.

Parameters
lenthe message length

isValidCoding is initialized to true.

Definition at line 246 of file cryptlib.h.

Member Function Documentation

bool DecodingResult::operator!= ( const DecodingResult rhs) const
inline

Compare two DecodingResult.

Parameters
rhsthe other DecodingResult
Returns
true if either isValidCoding or messageLength is not equal, false otherwise

Returns !operator==(rhs).

Definition at line 256 of file cryptlib.h.

Here is the call graph for this function:

bool DecodingResult::operator== ( const DecodingResult rhs) const
inline

Compare two DecodingResult.

Parameters
rhsthe other DecodingResult
Returns
true if both isValidCoding and messageLength are equal, false otherwise

Definition at line 251 of file cryptlib.h.

Member Data Documentation

bool DecodingResult::isValidCoding

Flag to indicate the decoding is valid.

Definition at line 259 of file cryptlib.h.

size_t DecodingResult::messageLength

Recovered message length if isValidCoding is true, undefined otherwise.

Definition at line 261 of file cryptlib.h.


The documentation for this class was generated from the following file: