Software APIs
Public Member Functions
testutil::BinaryBlob< T > Class Template Reference

Public Member Functions

 BinaryBlob (const T &data)
 
 BinaryBlob (const void *ptr, size_t len)
 
BinaryBlobReset ()
 Resets the offset pointer to zero.
 
BinaryBlobSeek (ssize_t delta)
 Seeks the offset pointer relative to the current position.
 
template<typename U >
bool TryFind (const U &item)
 Tries to find the item within the data, starting at the offset pointer. More...
 
template<typename U >
BinaryBlobFind (const U &item)
 Finds the item within the data, starting at the offset pointer.
 
template<typename U >
Read ()
 Read from the offset.
 
template<typename U >
BinaryBlobWrite (const U &val)
 Read from the offset.
 
T * get ()
 

Detailed Description

template<typename T>
class testutil::BinaryBlob< T >

Definition at line 15 of file binary_blob.h.

Member Function Documentation

◆ TryFind()

template<typename T >
template<typename U >
bool testutil::BinaryBlob< T >::TryFind ( const U &  item)
inline

Tries to find the item within the data, starting at the offset pointer.

Parameters
itemThe item to find.
Returns
bool whether or not the item was found.

Definition at line 49 of file binary_blob.h.