Flutter Engine
The Flutter Engine
|
#include <SkBuffer.h>
Public Member Functions | |
SkRBuffer () | |
SkRBuffer (const void *data, size_t size) | |
size_t | pos () const |
size_t | size () const |
bool | eof () const |
size_t | available () const |
bool | isValid () const |
bool | read (void *buffer, size_t size) |
bool | skipToAlign4 () |
bool | readU8 (uint8_t *x) |
bool | readS32 (int32_t *x) |
bool | readU32 (uint32_t *x) |
const void * | skip (size_t bytes) |
template<typename T > | |
const T * | skipCount (size_t count) |
Light weight class for reading data from a memory block. The RBuffer is given the buffer to read from, with either a specified size or no size (in which case no range checking is performed). It is iillegal to attempt to read a value from an empty RBuffer (data == null).
Definition at line 27 of file SkBuffer.h.
|
inline |
Definition at line 29 of file SkBuffer.h.
|
inline |
Initialize RBuffer with a data point and length.
Definition at line 33 of file SkBuffer.h.
|
inline |
Definition at line 54 of file SkBuffer.h.
|
inline |
Return true if the buffer has read to the end of the data pointer. Only defined if the length was specified in the constructor or in a call to reset(). Always returns true if the length was not specified.
Definition at line 52 of file SkBuffer.h.
|
inline |
Definition at line 56 of file SkBuffer.h.
|
inline |
Return the number of bytes that have been read from the beginning of the data pointer.
Definition at line 43 of file SkBuffer.h.
bool SkRBuffer::read | ( | void * | buffer, |
size_t | size | ||
) |
Read the specified number of bytes from the data pointer. If buffer is not null, copy those bytes into buffer.
Definition at line 27 of file SkBuffer.cpp.
|
inline |
Definition at line 65 of file SkBuffer.h.
|
inline |
Definition at line 66 of file SkBuffer.h.
|
inline |
Definition at line 64 of file SkBuffer.h.
|
inline |
Return the total size of the data pointer. Only defined if the length was specified in the constructor or in a call to reset().
Definition at line 47 of file SkBuffer.h.
const void * SkRBuffer::skip | ( | size_t | bytes | ) |
Definition at line 17 of file SkBuffer.cpp.
Definition at line 70 of file SkBuffer.h.
bool SkRBuffer::skipToAlign4 | ( | ) |
Definition at line 35 of file SkBuffer.cpp.