Flutter Engine
The Flutter Engine
|
#include <FakeStreams.h>
Public Member Functions | |
HaltingStream (sk_sp< SkData > data, size_t initialLimit) | |
void | addNewData (size_t extra) |
size_t | read (void *buffer, size_t size) override |
bool | isAtEnd () const override |
bool | hasLength () const override |
size_t | getLength () const override |
bool | hasPosition () const override |
size_t | getPosition () const override |
bool | rewind () override |
bool | move (long offset) override |
bool | seek (size_t position) override |
bool | isAllDataReceived () 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< SkStream > | duplicate () const |
std::unique_ptr< SkStream > | fork () 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< SkData > | getData () const |
Additional Inherited Members | |
Static Public Member Functions inherited from SkStream | |
static std::unique_ptr< SkStreamAsset > | MakeFromFile (const char path[]) |
Definition at line 61 of file FakeStreams.h.
Definition at line 63 of file FakeStreams.h.
|
inline |
Definition at line 69 of file FakeStreams.h.
|
inlineoverridevirtual |
Returns the total length of the stream. If this cannot be done, returns 0.
Reimplemented from SkStream.
Definition at line 86 of file FakeStreams.h.
|
inlineoverridevirtual |
Returns the current position in the stream. If this cannot be done, returns 0.
Reimplemented from SkStream.
Definition at line 89 of file FakeStreams.h.
|
inlineoverridevirtual |
Returns true if this stream can report its total length.
Reimplemented from SkStream.
Definition at line 85 of file FakeStreams.h.
|
inlineoverridevirtual |
Returns true if this stream can report its current position.
Reimplemented from SkStream.
Definition at line 88 of file FakeStreams.h.
|
inline |
Definition at line 94 of file FakeStreams.h.
|
inlineoverridevirtual |
Returns true when all the bytes in the stream have been read. As SkStream represents synchronous I/O, isAtEnd returns false when the final stream length isn't known yet, even when all the bytes available so far have been read. This may return true early (when there are no more bytes to be read) or late (after the first unsuccessful read).
Implements SkStream.
Definition at line 81 of file FakeStreams.h.
|
inlineoverridevirtual |
Seeks to an relative offset in the stream. If this cannot be done, returns false. If an attempt is made to move to a position outside the stream, the position will be set to the closest point within the stream (beginning or end).
Reimplemented from SkStream.
Definition at line 91 of file FakeStreams.h.
|
inlineoverridevirtual |
Reads or skips size number of bytes. If buffer == NULL, skip size bytes, return how many were skipped. If buffer != NULL, copy size bytes into buffer, return how many were copied.
buffer | when NULL skip size bytes, otherwise copy size bytes into buffer |
size | the number of bytes to skip or copy |
Implements SkStream.
Definition at line 73 of file FakeStreams.h.
|
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 SkStream.
Definition at line 90 of file FakeStreams.h.
|
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 92 of file FakeStreams.h.