#include <SkStream.h>
Definition at line 435 of file SkStream.h.
◆ SkFILEWStream()
SkFILEWStream::SkFILEWStream |
( |
const char |
path[] | ) |
|
Definition at line 410 of file SkStream.cpp.
411{
413}
FILE * sk_fopen(const char path[], SkFILE_Flags)
◆ ~SkFILEWStream()
SkFILEWStream::~SkFILEWStream |
( |
| ) |
|
|
override |
Definition at line 415 of file SkStream.cpp.
416{
417 if (fFILE) {
419 }
420}
◆ bytesWritten()
size_t SkFILEWStream::bytesWritten |
( |
| ) |
const |
|
overridevirtual |
◆ flush()
void SkFILEWStream::flush |
( |
| ) |
|
|
overridevirtual |
◆ fsync()
void SkFILEWStream::fsync |
( |
| ) |
|
Definition at line 449 of file SkStream.cpp.
450{
452 if (fFILE) {
454 }
455}
◆ isValid()
bool SkFILEWStream::isValid |
( |
| ) |
const |
|
inline |
Returns true if the current path could be opened.
Definition at line 442 of file SkStream.h.
442{ return fFILE != nullptr; }
◆ write()
bool SkFILEWStream::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.
Definition at line 426 of file SkStream.cpp.
427{
428 if (fFILE == nullptr) {
429 return false;
430 }
431
433 {
436 fFILE = nullptr;
437 return false;
438 }
439 return true;
440}
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
size_t sk_fwrite(const void *buffer, size_t byteCount, FILE *)
static const uint8_t buffer[]
The documentation for this class was generated from the following files: