Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
NonseekableStream Class Reference

#include <FakeStreams.h>

Inheritance diagram for NonseekableStream:
NotAssetMemStream SkStream

Public Member Functions

 NonseekableStream (sk_sp< SkData > data)
 
bool rewind () override
 
bool seek (size_t) override
 
- Public Member Functions inherited from NotAssetMemStream
 NotAssetMemStream (sk_sp< SkData > data)
 
bool hasPosition () const override
 
bool hasLength () const override
 
size_t peek (void *buf, size_t bytes) const override
 
size_t read (void *buf, size_t bytes) override
 
bool rewind () override
 
bool isAtEnd () const override
 
- 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
 

Additional Inherited Members

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

Detailed Description

Definition at line 43 of file FakeStreams.h.

Constructor & Destructor Documentation

◆ NonseekableStream()

NonseekableStream::NonseekableStream ( sk_sp< SkData data)
inline

Definition at line 45 of file FakeStreams.h.

45: INHERITED(std::move(data)) {}
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63

Member Function Documentation

◆ rewind()

bool NonseekableStream::rewind ( )
inlineoverridevirtual

Rewinds to the beginning of the stream. Returns true if the stream is known to be at the beginning after this call returns.

Reimplemented from NotAssetMemStream.

Definition at line 47 of file FakeStreams.h.

47 {
48 return false;
49 }

◆ seek()

bool NonseekableStream::seek ( size_t  )
inlineoverridevirtual

Seeks to an absolute position in the stream. If this cannot be done, returns false. If an attempt is made to seek past the end of the stream, the position will be set to the end of the stream.

Reimplemented from SkStream.

Definition at line 51 of file FakeStreams.h.

51 {
52 return false;
53 }

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