webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Attributes | List of all members
WTF::Persistence::Decoder Class Reference

#include <Decoder.h>

Public Member Functions

WTF_EXPORT_PRIVATE Decoder (const uint8_t *buffer, size_t bufferSize)
 
WTF_EXPORT_PRIVATE ~Decoder ()
 
size_t length () const
 
size_t currentOffset () const
 
WTF_EXPORT_PRIVATE bool verifyChecksum ()
 
WTF_EXPORT_PRIVATE bool decodeFixedLengthData (uint8_t *, size_t)
 
WTF_EXPORT_PRIVATE bool decode (bool &)
 
WTF_EXPORT_PRIVATE bool decode (uint8_t &)
 
WTF_EXPORT_PRIVATE bool decode (uint16_t &)
 
WTF_EXPORT_PRIVATE bool decode (uint32_t &)
 
WTF_EXPORT_PRIVATE bool decode (uint64_t &)
 
WTF_EXPORT_PRIVATE bool decode (int32_t &)
 
WTF_EXPORT_PRIVATE bool decode (int64_t &)
 
WTF_EXPORT_PRIVATE bool decode (float &)
 
WTF_EXPORT_PRIVATE bool decode (double &)
 
template<typename T >
bool decodeEnum (T &result)
 
template<typename T >
bool decode (T &t)
 
template<typename T >
bool bufferIsLargeEnoughToContain (size_t numElements) const
 
WTF_EXPORT_PRIVATE Decoder (const uint8_t *buffer, size_t bufferSize)
 
WTF_EXPORT_PRIVATE ~Decoder ()
 
size_t length () const
 
size_t currentOffset () const
 
WTF_EXPORT_PRIVATE bool verifyChecksum ()
 
WTF_EXPORT_PRIVATE bool decodeFixedLengthData (uint8_t *, size_t)
 
WTF_EXPORT_PRIVATE bool decode (bool &)
 
WTF_EXPORT_PRIVATE bool decode (uint8_t &)
 
WTF_EXPORT_PRIVATE bool decode (uint16_t &)
 
WTF_EXPORT_PRIVATE bool decode (uint32_t &)
 
WTF_EXPORT_PRIVATE bool decode (uint64_t &)
 
WTF_EXPORT_PRIVATE bool decode (int32_t &)
 
WTF_EXPORT_PRIVATE bool decode (int64_t &)
 
WTF_EXPORT_PRIVATE bool decode (float &)
 
WTF_EXPORT_PRIVATE bool decode (double &)
 
template<typename T >
bool decodeEnum (T &result)
 
template<typename T >
bool decode (T &t)
 
template<typename T >
bool bufferIsLargeEnoughToContain (size_t numElements) const
 
WTF_EXPORT_PRIVATE Decoder (const uint8_t *buffer, size_t bufferSize)
 
WTF_EXPORT_PRIVATE ~Decoder ()
 
size_t length () const
 
size_t currentOffset () const
 
WTF_EXPORT_PRIVATE bool verifyChecksum ()
 
WTF_EXPORT_PRIVATE bool decodeFixedLengthData (uint8_t *, size_t)
 
WTF_EXPORT_PRIVATE bool decode (bool &)
 
WTF_EXPORT_PRIVATE bool decode (uint8_t &)
 
WTF_EXPORT_PRIVATE bool decode (uint16_t &)
 
WTF_EXPORT_PRIVATE bool decode (uint32_t &)
 
WTF_EXPORT_PRIVATE bool decode (uint64_t &)
 
WTF_EXPORT_PRIVATE bool decode (int32_t &)
 
WTF_EXPORT_PRIVATE bool decode (int64_t &)
 
WTF_EXPORT_PRIVATE bool decode (float &)
 
WTF_EXPORT_PRIVATE bool decode (double &)
 
template<typename T >
bool decodeEnum (T &result)
 
template<typename T >
bool decode (T &t)
 
template<typename T >
bool bufferIsLargeEnoughToContain (size_t numElements) const
 

Static Public Attributes

static const bool isIPCDecoder = false
 

Constructor & Destructor Documentation

◆ Decoder() [1/3]

WTF::Persistence::Decoder::Decoder ( const uint8_t buffer,
size_t  bufferSize 
)

◆ ~Decoder() [1/3]

WTF::Persistence::Decoder::~Decoder ( )

◆ Decoder() [2/3]

WTF_EXPORT_PRIVATE WTF::Persistence::Decoder::Decoder ( const uint8_t buffer,
size_t  bufferSize 
)

◆ ~Decoder() [2/3]

WTF_EXPORT_PRIVATE WTF::Persistence::Decoder::~Decoder ( )

◆ Decoder() [3/3]

WTF_EXPORT_PRIVATE WTF::Persistence::Decoder::Decoder ( const uint8_t buffer,
size_t  bufferSize 
)

◆ ~Decoder() [3/3]

WTF_EXPORT_PRIVATE WTF::Persistence::Decoder::~Decoder ( )

Member Function Documentation

◆ bufferIsLargeEnoughToContain() [1/3]

template<typename T >
bool WTF::Persistence::Decoder::bufferIsLargeEnoughToContain ( size_t  numElements) const
inline

◆ bufferIsLargeEnoughToContain() [2/3]

template<typename T >
bool WTF::Persistence::Decoder::bufferIsLargeEnoughToContain ( size_t  numElements) const
inline

◆ bufferIsLargeEnoughToContain() [3/3]

template<typename T >
bool WTF::Persistence::Decoder::bufferIsLargeEnoughToContain ( size_t  numElements) const
inline

◆ currentOffset() [1/3]

size_t WTF::Persistence::Decoder::currentOffset ( ) const
inline

◆ currentOffset() [2/3]

size_t WTF::Persistence::Decoder::currentOffset ( ) const
inline

◆ currentOffset() [3/3]

size_t WTF::Persistence::Decoder::currentOffset ( ) const
inline

◆ decode() [1/30]

bool WTF::Persistence::Decoder::decode ( bool &  result)

◆ decode() [2/30]

WTF_EXPORT_PRIVATE bool WTF::Persistence::Decoder::decode ( bool &  )

◆ decode() [3/30]

WTF_EXPORT_PRIVATE bool WTF::Persistence::Decoder::decode ( bool &  )

◆ decode() [4/30]

WTF_EXPORT_PRIVATE bool WTF::Persistence::Decoder::decode ( uint8_t )

◆ decode() [5/30]

WTF_EXPORT_PRIVATE bool WTF::Persistence::Decoder::decode ( uint8_t )

◆ decode() [6/30]

bool WTF::Persistence::Decoder::decode ( uint8_t result)

◆ decode() [7/30]

WTF_EXPORT_PRIVATE bool WTF::Persistence::Decoder::decode ( uint16_t )

◆ decode() [8/30]

WTF_EXPORT_PRIVATE bool WTF::Persistence::Decoder::decode ( uint16_t )

◆ decode() [9/30]

bool WTF::Persistence::Decoder::decode ( uint16_t result)

◆ decode() [10/30]

bool WTF::Persistence::Decoder::decode ( uint32_t result)

◆ decode() [11/30]

WTF_EXPORT_PRIVATE bool WTF::Persistence::Decoder::decode ( uint32_t )

◆ decode() [12/30]

WTF_EXPORT_PRIVATE bool WTF::Persistence::Decoder::decode ( uint32_t )

◆ decode() [13/30]

bool WTF::Persistence::Decoder::decode ( uint64_t result)

◆ decode() [14/30]

WTF_EXPORT_PRIVATE bool WTF::Persistence::Decoder::decode ( uint64_t )

◆ decode() [15/30]

WTF_EXPORT_PRIVATE bool WTF::Persistence::Decoder::decode ( uint64_t )

◆ decode() [16/30]

bool WTF::Persistence::Decoder::decode ( int32_t result)

◆ decode() [17/30]

WTF_EXPORT_PRIVATE bool WTF::Persistence::Decoder::decode ( int32_t )

◆ decode() [18/30]

WTF_EXPORT_PRIVATE bool WTF::Persistence::Decoder::decode ( int32_t )

◆ decode() [19/30]

WTF_EXPORT_PRIVATE bool WTF::Persistence::Decoder::decode ( int64_t )

◆ decode() [20/30]

bool WTF::Persistence::Decoder::decode ( int64_t result)

◆ decode() [21/30]

WTF_EXPORT_PRIVATE bool WTF::Persistence::Decoder::decode ( int64_t )

◆ decode() [22/30]

WTF_EXPORT_PRIVATE bool WTF::Persistence::Decoder::decode ( float &  )

◆ decode() [23/30]

bool WTF::Persistence::Decoder::decode ( float &  result)

◆ decode() [24/30]

WTF_EXPORT_PRIVATE bool WTF::Persistence::Decoder::decode ( float &  )

◆ decode() [25/30]

WTF_EXPORT_PRIVATE bool WTF::Persistence::Decoder::decode ( double &  )

◆ decode() [26/30]

bool WTF::Persistence::Decoder::decode ( double &  result)

◆ decode() [27/30]

WTF_EXPORT_PRIVATE bool WTF::Persistence::Decoder::decode ( double &  )

◆ decode() [28/30]

template<typename T >
bool WTF::Persistence::Decoder::decode ( T t)
inline

◆ decode() [29/30]

template<typename T >
bool WTF::Persistence::Decoder::decode ( T t)
inline

◆ decode() [30/30]

template<typename T >
bool WTF::Persistence::Decoder::decode ( T t)
inline

◆ decodeEnum() [1/3]

template<typename T >
bool WTF::Persistence::Decoder::decodeEnum ( T result)
inline

◆ decodeEnum() [2/3]

template<typename T >
bool WTF::Persistence::Decoder::decodeEnum ( T result)
inline

◆ decodeEnum() [3/3]

template<typename T >
bool WTF::Persistence::Decoder::decodeEnum ( T result)
inline

◆ decodeFixedLengthData() [1/3]

WTF_EXPORT_PRIVATE bool WTF::Persistence::Decoder::decodeFixedLengthData ( uint8_t ,
size_t   
)

◆ decodeFixedLengthData() [2/3]

bool WTF::Persistence::Decoder::decodeFixedLengthData ( uint8_t data,
size_t  size 
)

◆ decodeFixedLengthData() [3/3]

WTF_EXPORT_PRIVATE bool WTF::Persistence::Decoder::decodeFixedLengthData ( uint8_t ,
size_t   
)

◆ length() [1/3]

size_t WTF::Persistence::Decoder::length ( ) const
inline

◆ length() [2/3]

size_t WTF::Persistence::Decoder::length ( void  ) const
inline

◆ length() [3/3]

size_t WTF::Persistence::Decoder::length ( void  ) const
inline

◆ verifyChecksum() [1/3]

WTF_EXPORT_PRIVATE bool WTF::Persistence::Decoder::verifyChecksum ( )

◆ verifyChecksum() [2/3]

WTF_EXPORT_PRIVATE bool WTF::Persistence::Decoder::verifyChecksum ( )

◆ verifyChecksum() [3/3]

bool WTF::Persistence::Decoder::verifyChecksum ( )

Member Data Documentation

◆ isIPCDecoder

static const bool WTF::Persistence::Decoder::isIPCDecoder = false
static

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