Flutter Engine
The Flutter Engine
Public Member Functions | Private Member Functions | List of all members
SkStreamMemory Class Referenceabstract

#include <SkStream.h>

Inheritance diagram for SkStreamMemory:
SkStreamAsset SkStreamSeekable SkStreamRewindable SkStream SkDWriteFontFileStream SkMemoryStream

Public Member Functions

const void * getMemoryBase () override=0
 
std::unique_ptr< SkStreamMemoryduplicate () const
 
std::unique_ptr< SkStreamMemoryfork () const
 
- Public Member Functions inherited from SkStreamAsset
bool hasLength () const override
 
size_t getLength () const override=0
 
std::unique_ptr< SkStreamAssetduplicate () const
 
std::unique_ptr< SkStreamAssetfork () const
 
- Public Member Functions inherited from SkStreamSeekable
std::unique_ptr< SkStreamSeekableduplicate () const
 
bool hasPosition () const override
 
size_t getPosition () const override=0
 
bool seek (size_t position) override=0
 
bool move (long offset) override=0
 
std::unique_ptr< SkStreamSeekablefork () const
 
- Public Member Functions inherited from SkStreamRewindable
bool rewind () override=0
 
std::unique_ptr< SkStreamRewindableduplicate () const
 
- Public Member Functions inherited from SkStream
virtual ~SkStream ()
 
 SkStream ()
 
virtual size_t read (void *buffer, size_t size)=0
 
size_t skip (size_t size)
 
virtual size_t peek (void *, size_t) const
 
virtual bool isAtEnd () const =0
 
bool readS8 (int8_t *)
 
bool readS16 (int16_t *)
 
bool readS32 (int32_t *)
 
bool readU8 (uint8_t *i)
 
bool readU16 (uint16_t *i)
 
bool readU32 (uint32_t *i)
 
bool readBool (bool *b)
 
bool readScalar (SkScalar *)
 
bool readPackedUInt (size_t *)
 
virtual bool rewind ()
 
std::unique_ptr< SkStreamduplicate () const
 
std::unique_ptr< SkStreamfork () const
 
virtual bool hasPosition () const
 
virtual size_t getPosition () const
 
virtual bool seek (size_t)
 
virtual bool move (long)
 
virtual bool hasLength () const
 
virtual size_t getLength () const
 
virtual const void * getMemoryBase ()
 
virtual sk_sp< SkDatagetData () const
 

Private Member Functions

SkStreamMemoryonDuplicate () const override=0
 
SkStreamMemoryonFork () const override=0
 

Additional Inherited Members

- Static Public Member Functions inherited from SkStream
static std::unique_ptr< SkStreamAssetMakeFromFile (const char path[])
 

Detailed Description

SkStreamMemory is a SkStreamAsset for which getMemoryBase is required.

Definition at line 203 of file SkStream.h.

Member Function Documentation

◆ duplicate()

std::unique_ptr< SkStreamMemory > SkStreamMemory::duplicate ( ) const
inline

Definition at line 207 of file SkStream.h.

207 {
208 return std::unique_ptr<SkStreamMemory>(this->onDuplicate());
209 }
SkStreamMemory * onDuplicate() const override=0

◆ fork()

std::unique_ptr< SkStreamMemory > SkStreamMemory::fork ( ) const
inline

Definition at line 210 of file SkStream.h.

210 {
211 return std::unique_ptr<SkStreamMemory>(this->onFork());
212 }
SkStreamMemory * onFork() const override=0

◆ getMemoryBase()

const void * SkStreamMemory::getMemoryBase ( )
overridepure virtual

Returns the starting address for the data. If this cannot be done, returns NULL.

Reimplemented from SkStream.

Implemented in SkMemoryStream, and SkDWriteFontFileStream.

◆ onDuplicate()

SkStreamMemory * SkStreamMemory::onDuplicate ( ) const
overrideprivatepure virtual

Implements SkStreamAsset.

◆ onFork()

SkStreamMemory * SkStreamMemory::onFork ( ) const
overrideprivatepure virtual

Implements SkStreamAsset.


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