#include <SkDWriteFontFileStream.h>
An SkStream backed by an IDWriteFontFileStream. This allows Skia code to read an IDWriteFontFileStream.
Definition at line 24 of file SkDWriteFontFileStream.h.
◆ SkDWriteFontFileStream()
SkDWriteFontFileStream::SkDWriteFontFileStream |
( |
IDWriteFontFileStream * |
fontFileStream | ) |
|
|
explicit |
◆ ~SkDWriteFontFileStream()
SkDWriteFontFileStream::~SkDWriteFontFileStream |
( |
| ) |
|
|
override |
◆ duplicate()
Definition at line 38 of file SkDWriteFontFileStream.h.
38 {
39 return std::unique_ptr<SkDWriteFontFileStream>(this->onDuplicate());
40 }
◆ fork()
Definition at line 41 of file SkDWriteFontFileStream.h.
41 {
42 return std::unique_ptr<SkDWriteFontFileStream>(this->onFork());
43 }
◆ getLength()
size_t SkDWriteFontFileStream::getLength |
( |
| ) |
const |
|
overridevirtual |
Returns the total length of the stream. If this cannot be done, returns 0.
Implements SkStreamAsset.
◆ getMemoryBase()
const void * SkDWriteFontFileStream::getMemoryBase |
( |
| ) |
|
|
overridevirtual |
Returns the starting address for the data. If this cannot be done, returns NULL.
Implements SkStreamMemory.
◆ getPosition()
size_t SkDWriteFontFileStream::getPosition |
( |
| ) |
const |
|
overridevirtual |
Returns the current position in the stream. If this cannot be done, returns 0.
Implements SkStreamSeekable.
◆ isAtEnd()
bool SkDWriteFontFileStream::isAtEnd |
( |
| ) |
const |
|
overridevirtual |
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.
◆ move()
bool SkDWriteFontFileStream::move |
( |
long |
| ) |
|
|
overridevirtual |
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).
Implements SkStreamSeekable.
◆ read()
size_t SkDWriteFontFileStream::read |
( |
void * |
buffer, |
|
|
size_t |
size |
|
) |
| |
|
overridevirtual |
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.
- Parameters
-
buffer | when NULL skip size bytes, otherwise copy size bytes into buffer |
size | the number of bytes to skip or copy |
- Returns
- the number of bytes actually read.
Implements SkStream.
◆ rewind()
bool SkDWriteFontFileStream::rewind |
( |
| ) |
|
|
overridevirtual |
Rewinds to the beginning of the stream. Returns true if the stream is known to be at the beginning after this call returns.
Implements SkStreamRewindable.
◆ seek()
bool SkDWriteFontFileStream::seek |
( |
size_t |
| ) |
|
|
overridevirtual |
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.
Implements SkStreamSeekable.
The documentation for this class was generated from the following file: