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

#include <kernel_binary.h>

Public Member Functions

 AlternativeReadingScope (Reader *reader, intptr_t new_position)
 
 AlternativeReadingScope (Reader *reader)
 
 ~AlternativeReadingScope ()
 
intptr_t saved_offset ()
 

Detailed Description

Definition at line 527 of file kernel_binary.h.

Constructor & Destructor Documentation

◆ AlternativeReadingScope() [1/2]

dart::kernel::AlternativeReadingScope::AlternativeReadingScope ( Reader reader,
intptr_t  new_position 
)
inline

Definition at line 529 of file kernel_binary.h.

530 : reader_(reader), saved_offset_(reader_->offset_) {
531 reader_->offset_ = new_position;
532 }

◆ AlternativeReadingScope() [2/2]

dart::kernel::AlternativeReadingScope::AlternativeReadingScope ( Reader reader)
inlineexplicit

Definition at line 534 of file kernel_binary.h.

535 : reader_(reader), saved_offset_(reader_->offset_) {}

◆ ~AlternativeReadingScope()

dart::kernel::AlternativeReadingScope::~AlternativeReadingScope ( )
inline

Definition at line 537 of file kernel_binary.h.

537{ reader_->offset_ = saved_offset_; }

Member Function Documentation

◆ saved_offset()

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

Definition at line 539 of file kernel_binary.h.

539{ return saved_offset_; }

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