webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | List of all members
woff2::Buffer Class Reference

#include <buffer.h>

Public Member Functions

 Buffer (const uint8_t *buffer, size_t len)
 
bool Skip (size_t n_bytes)
 
bool Read (uint8_t *buffer, size_t n_bytes)
 
bool ReadU8 (uint8_t *value)
 
bool ReadU16 (uint16_t *value)
 
bool ReadS16 (int16_t *value)
 
bool ReadU24 (uint32_t *value)
 
bool ReadU32 (uint32_t *value)
 
bool ReadS32 (int32_t *value)
 
bool ReadTag (uint32_t *value)
 
bool ReadR64 (uint64_t *value)
 
const uint8_tbuffer () const
 
size_t offset () const
 
size_t length () const
 
void set_offset (size_t newoffset)
 

Constructor & Destructor Documentation

◆ Buffer()

woff2::Buffer::Buffer ( const uint8_t buffer,
size_t  len 
)
inline

Member Function Documentation

◆ buffer()

const uint8_t* woff2::Buffer::buffer ( ) const
inline

◆ length()

size_t woff2::Buffer::length ( void  ) const
inline

◆ offset()

size_t woff2::Buffer::offset ( ) const
inline

◆ Read()

bool woff2::Buffer::Read ( uint8_t buffer,
size_t  n_bytes 
)
inline

◆ ReadR64()

bool woff2::Buffer::ReadR64 ( uint64_t value)
inline

◆ ReadS16()

bool woff2::Buffer::ReadS16 ( int16_t value)
inline

◆ ReadS32()

bool woff2::Buffer::ReadS32 ( int32_t value)
inline

◆ ReadTag()

bool woff2::Buffer::ReadTag ( uint32_t value)
inline

◆ ReadU16()

bool woff2::Buffer::ReadU16 ( uint16_t value)
inline

◆ ReadU24()

bool woff2::Buffer::ReadU24 ( uint32_t value)
inline

◆ ReadU32()

bool woff2::Buffer::ReadU32 ( uint32_t value)
inline

◆ ReadU8()

bool woff2::Buffer::ReadU8 ( uint8_t value)
inline

◆ set_offset()

void woff2::Buffer::set_offset ( size_t  newoffset)
inline

◆ Skip()

bool woff2::Buffer::Skip ( size_t  n_bytes)
inline

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