Skia
2DGraphicsLibrary
|
Contains a read-only, thread-sharable block of memory. More...
#include <SkRWBuffer.h>
Classes | |
class | Iter |
Public Member Functions | |
size_t | size () const |
Return the logical length of the data owned/shared by this buffer. More... | |
![]() | |
SkRefCntBase () | |
Default construct, initializing the reference count to 1. | |
virtual | ~SkRefCntBase () |
Destruct, asserting that the reference count is 1. | |
int32_t | getRefCnt () const |
Return the reference count. More... | |
void | validate () const |
bool | unique () const |
May return true if the caller is the only owner. More... | |
void | ref () const |
Increment the reference count. More... | |
void | unref () const |
Decrement the reference count. More... | |
Private Member Functions | |
SkROBuffer (const SkBufferHead *head, size_t available, const SkBufferBlock *fTail) | |
Private Attributes | |
const SkBufferHead * | fHead |
const size_t | fAvailable |
const SkBufferBlock * | fTail |
Friends | |
class | SkRWBuffer |
Additional Inherited Members | |
![]() | |
void | internal_dispose_restore_refcnt_to_1 () const |
Allow subclasses to call this if they've overridden internal_dispose so they can reset fRefCnt before the destructor is called or if they choose not to call the destructor (e.g. More... | |
Contains a read-only, thread-sharable block of memory.
To access the memory, the caller must instantiate a local iterator, as the memory is stored in 1 or more contiguous blocks.
|
inline |
Return the logical length of the data owned/shared by this buffer.
It may be stored in multiple contiguous blocks, accessible via the iterator.