Skia
2DGraphicsLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkROBuffer Class Reference

Contains a read-only, thread-sharable block of memory. More...

#include <SkRWBuffer.h>

Inheritance diagram for SkROBuffer:
SkRefCnt SkRefCntBase

Classes

class  Iter
 

Public Member Functions

size_t size () const
 Return the logical length of the data owned/shared by this buffer. More...
 
- Public Member Functions inherited from SkRefCntBase
 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

- Protected Member Functions inherited from SkRefCntBase
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...
 

Detailed Description

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.

Member Function Documentation

size_t SkROBuffer::size ( ) const
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.


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