Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkDngStream Class Reference
Inheritance diagram for SkDngStream:

Public Member Functions

 SkDngStream (SkRawStream *stream)
 
 ~SkDngStream () override
 
uint64 DoGetLength () override
 
void DoRead (void *data, uint32 count, uint64 offset) override
 

Detailed Description

Definition at line 435 of file SkRawCodec.cpp.

Constructor & Destructor Documentation

◆ SkDngStream()

SkDngStream::SkDngStream ( SkRawStream stream)
inline

Definition at line 438 of file SkRawCodec.cpp.

◆ ~SkDngStream()

SkDngStream::~SkDngStream ( )
inlineoverride

Definition at line 440 of file SkRawCodec.cpp.

440{}

Member Function Documentation

◆ DoGetLength()

uint64 SkDngStream::DoGetLength ( )
inlineoverride

Definition at line 442 of file SkRawCodec.cpp.

442{ return fStream->getLength(); }
virtual uint64 getLength()=0

◆ DoRead()

void SkDngStream::DoRead ( void *  data,
uint32  count,
uint64  offset 
)
inlineoverride

Definition at line 444 of file SkRawCodec.cpp.

444 {
445 size_t sum;
446 if (!safe_add_to_size_t(static_cast<uint64>(count), offset, &sum) ||
447 !fStream->read(data, static_cast<size_t>(offset), static_cast<size_t>(count))) {
448 ThrowReadFile();
449 }
450 }
int count
Definition: FontMgrTest.cpp:50
virtual bool read(void *data, size_t offset, size_t length)=0
SeparatedVector2 offset
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63

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