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

#include <snapshot.h>

Inheritance diagram for dart::SerializedObjectBuffer:
dart::StackResource

Public Member Functions

 SerializedObjectBuffer ()
 
void set_message (std::unique_ptr< Message > message)
 
std::unique_ptr< MessageStealMessage ()
 
- Public Member Functions inherited from dart::StackResource
 StackResource (ThreadState *thread)
 
virtual ~StackResource ()
 
ThreadStatethread () const
 

Additional Inherited Members

- Static Public Member Functions inherited from dart::StackResource
static void Unwind (ThreadState *thread)
 
static void UnwindAbove (ThreadState *thread, StackResource *new_top)
 

Detailed Description

Definition at line 117 of file snapshot.h.

Constructor & Destructor Documentation

◆ SerializedObjectBuffer()

dart::SerializedObjectBuffer::SerializedObjectBuffer ( )
inline

Definition at line 119 of file snapshot.h.

120 : StackResource(Thread::Current()), message_(nullptr) {}
StackResource(ThreadState *thread)
Definition: allocation.h:25
static Thread * Current()
Definition: thread.h:362

Member Function Documentation

◆ set_message()

void dart::SerializedObjectBuffer::set_message ( std::unique_ptr< Message message)
inline

Definition at line 122 of file snapshot.h.

122 {
123 ASSERT(message_ == nullptr);
124 message_ = std::move(message);
125 }
#define ASSERT(E)
Win32Message message

◆ StealMessage()

std::unique_ptr< Message > dart::SerializedObjectBuffer::StealMessage ( )
inline

Definition at line 126 of file snapshot.h.

126{ return std::move(message_); }

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