#include <cel_blob.h>
Public Types | |
enum | |
Public Member Functions | |
Blob () | |
Blob (const u8 *inBin) | |
Blob (const Blob &inBin) | |
~Blob () | |
Blob & | operator= (const u8 *inBin) |
Blob & | operator= (const Blob &inBin) |
operator const u8 * () const | |
operator u8 * () | |
size_t | getSize () const |
void | clear () |
bool | isAllZero () const |
bool | operator== (const Blob &inBin) const |
bool | operator!= (const Blob &inBin) const |
bool | operator<= (const Blob &inBin) const |
bool | operator< (const Blob &inBin) const |
bool | operator>= (const Blob &inBin) const |
bool | operator> (const Blob &inBin) const |
int | compare (const Blob &inBin) const |
Public Attributes | |
u8 | bin [SIZE_NO_WARN] |
This template defines lightweight definition for Binary-Large-Object classes.
_SIZE | The byte size of the binary data. |
NEED_SECURE_CLEANUP | Whether the destructor should zero-clear the instance or not. |
anonymous enum |
The size of the Blob in bytes.
|
inline |
Initializes the binary with all-0.
|
inline |
Initializes the binary by copying the specified data.
inBin | Data to copy. The pointer should point a memory location which is longer than SIZE. Only the first SIZE bytes are copied. |
|
inline |
Duplicates the specified blob.
inBin | A Blob instance to be duplicated. |
|
inline |
Destructs the instance.
|
inline |
Fill the binary with all-0.
Referenced by Celartem::Blob< _SIZE, NEED_SECURE_CLEANUP >::~Blob().
|
inline |
Comparison of two Blob instances.
Referenced by Celartem::Blob< _SIZE, NEED_SECURE_CLEANUP >::operator!=(), Celartem::Blob< _SIZE, NEED_SECURE_CLEANUP >::operator<(), Celartem::Blob< _SIZE, NEED_SECURE_CLEANUP >::operator<=(), Celartem::Blob< _SIZE, NEED_SECURE_CLEANUP >::operator==(), Celartem::Blob< _SIZE, NEED_SECURE_CLEANUP >::operator>(), and Celartem::Blob< _SIZE, NEED_SECURE_CLEANUP >::operator>=().
|
inline |
Returns the size of binary.
|
inline |
Determine whether the binary is all-0 or not.
true
if all the bytes are 0; otherwise false
.
|
inline |
Implicit conversion to const
u8*.
|
inline |
Implicit conversion to u8*.
|
inline |
Comparison of two Blob instances.
true
if not identical; otherwise false
.
|
inline |
Comparison of two Blob instances.
true
if this instance is smaller than the other; otherwise false
.
|
inline |
Comparison of two Blob instances.
true
if this instance is smaller or equal to the other; otherwise false
.
|
inline |
Duplicates the specified data.
inBin | Data to copy. The pointer should point a memory location which is longer than SIZE. Only the first SIZE bytes are copied. |
|
inline |
Duplicates the specified blob.
inBin | A Blob instance to be duplicated. |
|
inline |
Comparison of two Blob instances.
true
if identical; otherwise false
.
|
inline |
Comparison of two Blob instances.
true
if this instance is larger than the other; otherwise false
.
|
inline |
Comparison of two Blob instances.
true
if this instance is larger or equal to the other; otherwise false
. u8 Celartem::Blob< _SIZE, NEED_SECURE_CLEANUP >::bin[SIZE_NO_WARN] |
The binary.
Referenced by Celartem::Blob< _SIZE, NEED_SECURE_CLEANUP >::Blob(), Celartem::Blob< _SIZE, NEED_SECURE_CLEANUP >::clear(), Celartem::Blob< _SIZE, NEED_SECURE_CLEANUP >::compare(), Celartem::Blob< _SIZE, NEED_SECURE_CLEANUP >::isAllZero(), Celartem::Blob< _SIZE, NEED_SECURE_CLEANUP >::operator const u8 *(), Celartem::Blob< _SIZE, NEED_SECURE_CLEANUP >::operator u8 *(), and Celartem::Blob< _SIZE, NEED_SECURE_CLEANUP >::operator=().