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

#include <SkStream.h>

Inheritance diagram for SkNullWStream:
SkWStream

Public Member Functions

 SkNullWStream ()
 
bool write (const void *, size_t n) override
 
void flush () override
 
size_t bytesWritten () const override
 
- Public Member Functions inherited from SkWStream
virtual ~SkWStream ()
 
 SkWStream ()
 
virtual bool write (const void *buffer, size_t size)=0
 
virtual void flush ()
 
virtual size_t bytesWritten () const =0
 
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)
 

Additional Inherited Members

- Static Public Member Functions inherited from SkWStream
static int SizeOfPackedUInt (size_t value)
 

Detailed Description

Definition at line 276 of file SkStream.h.

Constructor & Destructor Documentation

◆ SkNullWStream()

SkNullWStream::SkNullWStream ( )
inline

Definition at line 278 of file SkStream.h.

278: fBytesWritten(0) {}

Member Function Documentation

◆ bytesWritten()

size_t SkNullWStream::bytesWritten ( ) const
inlineoverridevirtual

Implements SkWStream.

Definition at line 282 of file SkStream.h.

282{ return fBytesWritten; }

◆ flush()

void SkNullWStream::flush ( )
inlineoverridevirtual

Reimplemented from SkWStream.

Definition at line 281 of file SkStream.h.

281{}

◆ write()

bool SkNullWStream::write ( const void *  buffer,
size_t  size 
)
inlineoverridevirtual

Called to write bytes to a SkWStream. Returns true on success

Parameters
bufferthe address of at least size bytes to be written to the stream
sizeThe number of bytes in buffer to write to the stream
Returns
true on success

Implements SkWStream.

Definition at line 280 of file SkStream.h.

280{ fBytesWritten += n; return true; }

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