Struct GuidPrefix_t

Struct Documentation

struct GuidPrefix_t

Structure GuidPrefix_t, Guid Prefix of GUID_t.

Public Functions

inline GuidPrefix_t()

Default constructor. Set the Guid prefix to 0.

inline bool operator==(const GuidPrefix_t &prefix) const

Guid prefix comparison operator

Parameters

prefix – guid prefix to compare

Returns

True if the guid prefixes are equal

inline bool operator!=(const GuidPrefix_t &prefix) const

Guid prefix comparison operator

Parameters

prefix – Second guid prefix to compare

Returns

True if the guid prefixes are not equal

inline bool operator<(const GuidPrefix_t &prefix) const

Guid prefix minor operator

Parameters

prefix – Second guid prefix to compare

Returns

True if prefix is higher than this

Public Members

octet value[size]

Public Static Functions

static inline GuidPrefix_t unknown()
static inline int cmp(const GuidPrefix_t &prefix1, const GuidPrefix_t &prefix2)

Guid Prefix compare static method.

Parameters
  • prefix1 – First guid prefix to compare

  • prefix2 – Second guid prefix to compare

Returns

0 if prefix1 is equal to prefix2 .

Returns

< 0 if prefix1 is lower than prefix2 .

Returns

> 0 if prefix1 is higher than prefix2 .

Public Static Attributes

static constexpr unsigned int size = 12