Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::TarArchive Class Reference

Public Member Functions

 TarArchive (uint8_t *bytes, intptr_t bytes_length)
 
void Read ()
 
char * NextFilename ()
 
uint8_t * NextContent ()
 
intptr_t NextContentLength ()
 
bool HasMore () const
 
intptr_t Length () const
 

Detailed Description

Definition at line 165 of file vmservice.cc.

Constructor & Destructor Documentation

◆ TarArchive()

dart::TarArchive::TarArchive ( uint8_t *  bytes,
intptr_t  bytes_length 
)
inline

Definition at line 167 of file vmservice.cc.

168 : rs_(bytes, bytes_length) {}

Member Function Documentation

◆ HasMore()

bool dart::TarArchive::HasMore ( ) const
inline

Definition at line 189 of file vmservice.cc.

189{ return filenames_.length() > 0; }
intptr_t length() const

◆ Length()

intptr_t dart::TarArchive::Length ( ) const
inline

Definition at line 191 of file vmservice.cc.

191{ return filenames_.length(); }

◆ NextContent()

uint8_t * dart::TarArchive::NextContent ( )
inline

Definition at line 185 of file vmservice.cc.

185{ return contents_.RemoveLast(); }

◆ NextContentLength()

intptr_t dart::TarArchive::NextContentLength ( )
inline

Definition at line 187 of file vmservice.cc.

187{ return content_lengths_.RemoveLast(); }

◆ NextFilename()

char * dart::TarArchive::NextFilename ( )
inline

Definition at line 183 of file vmservice.cc.

183{ return filenames_.RemoveLast(); }

◆ Read()

void dart::TarArchive::Read ( )
inline

Definition at line 170 of file vmservice.cc.

170 {
171 while (HasNext()) {
172 char* filename;
173 uint8_t* data;
174 intptr_t data_length;
175 if (Next(&filename, &data, &data_length)) {
176 filenames_.Add(filename);
177 contents_.Add(data);
178 content_lengths_.Add(data_length);
179 }
180 }
181 }
void Add(const T &value)
static int8_t data[kExtLength]

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