#include <SkStream.h>
|
| SkDynamicMemoryWStream ()=default |
|
| SkDynamicMemoryWStream (SkDynamicMemoryWStream &&) |
|
SkDynamicMemoryWStream & | operator= (SkDynamicMemoryWStream &&) |
|
| ~SkDynamicMemoryWStream () override |
|
bool | write (const void *buffer, size_t size) override |
| Called to write bytes to a SkWStream. More...
|
|
size_t | bytesWritten () const override |
|
bool | read (void *buffer, size_t offset, size_t size) |
|
void | copyTo (void *dst) const |
| More efficient version of read(dst, 0, bytesWritten()). More...
|
|
bool | writeToStream (SkWStream *dst) const |
|
void | copyToAndReset (void *dst) |
| Equivalent to copyTo() followed by reset(), but may save memory use. More...
|
|
bool | writeToAndReset (SkWStream *dst) |
| Equivalent to writeToStream() followed by reset(), but may save memory use. More...
|
|
bool | writeToAndReset (SkDynamicMemoryWStream *dst) |
| Equivalent to writeToStream() followed by reset(), but may save memory use. More...
|
|
void | prependToAndReset (SkDynamicMemoryWStream *dst) |
| Prepend this stream to dst, resetting this. More...
|
|
sk_sp< SkData > | detachAsData () |
| Return the contents as SkData, and then reset the stream. More...
|
|
std::unique_ptr< SkStreamAsset > | detachAsStream () |
| Reset, returning a reader stream with the current content. More...
|
|
void | reset () |
| Reset the stream to its original, empty, state. More...
|
|
void | padToAlign4 () |
|
virtual void | flush () |
|
bool | write8 (U8CPU value) |
|
bool | write16 (U16CPU value) |
|
bool | write32 (uint32_t v) |
|
bool | writeText (const char text[]) |
|
bool | newline () |
|
bool | writeDecAsText (int32_t) |
|
bool | writeBigDecAsText (int64_t, int minDigits=0) |
|
bool | writeHexAsText (uint32_t, int minDigits=0) |
|
bool | writeScalarAsText (SkScalar) |
|
bool | writeBool (bool v) |
|
bool | writeScalar (SkScalar) |
|
bool | writePackedUInt (size_t) |
|
bool | writeStream (SkStream *input, size_t length) |
|
|
static int | SizeOfPackedUInt (size_t value) |
| This returns the number of bytes in the stream required to store 'value'. More...
|
|
◆ SkDynamicMemoryWStream() [1/2]
SkDynamicMemoryWStream::SkDynamicMemoryWStream |
( |
| ) |
|
|
default |
◆ SkDynamicMemoryWStream() [2/2]
◆ ~SkDynamicMemoryWStream()
SkDynamicMemoryWStream::~SkDynamicMemoryWStream |
( |
| ) |
|
|
override |
◆ bytesWritten()
size_t SkDynamicMemoryWStream::bytesWritten |
( |
| ) |
const |
|
overridevirtual |
◆ copyTo()
void SkDynamicMemoryWStream::copyTo |
( |
void * |
dst | ) |
const |
More efficient version of read(dst, 0, bytesWritten()).
◆ copyToAndReset()
void SkDynamicMemoryWStream::copyToAndReset |
( |
void * |
dst | ) |
|
◆ detachAsData()
Return the contents as SkData, and then reset the stream.
◆ detachAsStream()
std::unique_ptr<SkStreamAsset> SkDynamicMemoryWStream::detachAsStream |
( |
| ) |
|
Reset, returning a reader stream with the current content.
◆ flush()
virtual void SkWStream::flush |
( |
| ) |
|
|
virtualinherited |
◆ newline()
bool SkWStream::newline |
( |
| ) |
|
|
inlineinherited |
◆ operator=()
◆ padToAlign4()
void SkDynamicMemoryWStream::padToAlign4 |
( |
| ) |
|
◆ prependToAndReset()
Prepend this stream to dst, resetting this.
◆ read()
bool SkDynamicMemoryWStream::read |
( |
void * |
buffer, |
|
|
size_t |
offset, |
|
|
size_t |
size |
|
) |
| |
◆ reset()
void SkDynamicMemoryWStream::reset |
( |
| ) |
|
Reset the stream to its original, empty, state.
◆ SizeOfPackedUInt()
static int SkWStream::SizeOfPackedUInt |
( |
size_t |
value | ) |
|
|
staticinherited |
This returns the number of bytes in the stream required to store 'value'.
◆ write()
bool SkDynamicMemoryWStream::write |
( |
const void * |
buffer, |
|
|
size_t |
size |
|
) |
| |
|
overridevirtual |
Called to write bytes to a SkWStream.
Returns true on success
- Parameters
-
buffer | the address of at least size bytes to be written to the stream |
size | The number of bytes in buffer to write to the stream |
- Returns
- true on success
Implements SkWStream.
◆ write16()
bool SkWStream::write16 |
( |
U16CPU |
value | ) |
|
|
inlineinherited |
◆ write32()
bool SkWStream::write32 |
( |
uint32_t |
v | ) |
|
|
inlineinherited |
◆ write8()
bool SkWStream::write8 |
( |
U8CPU |
value | ) |
|
|
inlineinherited |
◆ writeBigDecAsText()
bool SkWStream::writeBigDecAsText |
( |
int64_t |
, |
|
|
int |
minDigits = 0 |
|
) |
| |
|
inherited |
◆ writeBool()
bool SkWStream::writeBool |
( |
bool |
v | ) |
|
|
inlineinherited |
◆ writeDecAsText()
bool SkWStream::writeDecAsText |
( |
int32_t |
| ) |
|
|
inherited |
◆ writeHexAsText()
bool SkWStream::writeHexAsText |
( |
uint32_t |
, |
|
|
int |
minDigits = 0 |
|
) |
| |
|
inherited |
◆ writePackedUInt()
bool SkWStream::writePackedUInt |
( |
size_t |
| ) |
|
|
inherited |
◆ writeScalar()
bool SkWStream::writeScalar |
( |
SkScalar |
| ) |
|
|
inherited |
◆ writeScalarAsText()
bool SkWStream::writeScalarAsText |
( |
SkScalar |
| ) |
|
|
inherited |
◆ writeStream()
bool SkWStream::writeStream |
( |
SkStream * |
input, |
|
|
size_t |
length |
|
) |
| |
|
inherited |
◆ writeText()
bool SkWStream::writeText |
( |
const char |
text[] | ) |
|
|
inlineinherited |
◆ writeToAndReset() [1/2]
◆ writeToAndReset() [2/2]
bool SkDynamicMemoryWStream::writeToAndReset |
( |
SkWStream * |
dst | ) |
|
◆ writeToStream()
bool SkDynamicMemoryWStream::writeToStream |
( |
SkWStream * |
dst | ) |
const |
◆ SkBlockMemoryRefCnt
friend class SkBlockMemoryRefCnt |
|
friend |
◆ SkBlockMemoryStream
friend class SkBlockMemoryStream |
|
friend |
The documentation for this class was generated from the following file: