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

Public Member Functions

 AutoRestorePosition (SkStream *stream)
 
 ~AutoRestorePosition ()
 
void markDone ()
 

Detailed Description

Definition at line 401 of file SkCustomTypeface.cpp.

Constructor & Destructor Documentation

◆ AutoRestorePosition()

AutoRestorePosition::AutoRestorePosition ( SkStream stream)
inline

Definition at line 405 of file SkCustomTypeface.cpp.

405 : fStream(stream) {
406 fPosition = stream->getPosition();
407 }

◆ ~AutoRestorePosition()

AutoRestorePosition::~AutoRestorePosition ( )
inline

Definition at line 409 of file SkCustomTypeface.cpp.

409 {
410 if (fStream) {
411 fStream->seek(fPosition);
412 }
413 }
virtual bool seek(size_t)
Definition: SkStream.h:125

Member Function Documentation

◆ markDone()

void AutoRestorePosition::markDone ( )
inline

Definition at line 416 of file SkCustomTypeface.cpp.

416{ fStream = nullptr; }

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