Skia
2DGraphicsLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkFILEWStream Class Reference
Inheritance diagram for SkFILEWStream:
SkWStream

Public Member Functions

 SkFILEWStream (const char path[])
 
bool isValid () const
 Returns true if the current path could be opened.
 
bool write (const void *buffer, size_t size) override
 Called to write bytes to a SkWStream. More...
 
void flush () override
 
void fsync ()
 
size_t bytesWritten () const override
 
- Public Member Functions inherited from SkWStream
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)
 

Private Types

typedef SkWStream INHERITED
 

Private Attributes

FILE * fFILE
 

Additional Inherited Members

- Static Public Member Functions inherited from SkWStream
static int SizeOfPackedUInt (size_t value)
 This returns the number of bytes in the stream required to store 'value'.
 

Member Function Documentation

bool SkFILEWStream::write ( const void *  buffer,
size_t  size 
)
overridevirtual

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.


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