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

#include <kernel_binary.h>

Public Member Functions

 AlternativeReadingScopeWithNewData (Reader *reader, const TypedDataBase *new_typed_data, intptr_t new_position)
 
 ~AlternativeReadingScopeWithNewData ()
 
intptr_t saved_offset ()
 

Detailed Description

Definition at line 550 of file kernel_binary.h.

Constructor & Destructor Documentation

◆ AlternativeReadingScopeWithNewData()

dart::kernel::AlternativeReadingScopeWithNewData::AlternativeReadingScopeWithNewData ( Reader reader,
const TypedDataBase new_typed_data,
intptr_t  new_position 
)
inline

Definition at line 552 of file kernel_binary.h.

555 : reader_(reader),
556 saved_size_(reader_->size_),
557 saved_raw_buffer_(reader_->raw_buffer_),
558 saved_typed_data_(reader_->typed_data_),
559 saved_offset_(reader_->offset_) {
560 reader_->typed_data_ = new_typed_data;
561 reader_->Init();
562 reader_->offset_ = new_position;
563 }

◆ ~AlternativeReadingScopeWithNewData()

dart::kernel::AlternativeReadingScopeWithNewData::~AlternativeReadingScopeWithNewData ( )
inline

Definition at line 565 of file kernel_binary.h.

565 {
566 reader_->raw_buffer_ = saved_raw_buffer_;
567 reader_->typed_data_ = saved_typed_data_;
568 reader_->size_ = saved_size_;
569 reader_->offset_ = saved_offset_;
570 }

Member Function Documentation

◆ saved_offset()

intptr_t dart::kernel::AlternativeReadingScopeWithNewData::saved_offset ( )
inline

Definition at line 572 of file kernel_binary.h.

572{ return saved_offset_; }

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