Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | Public Attributes | List of all members
dart::ImageWriter::ObjectData Struct Reference

#include <image_snapshot.h>

Public Types

using IsObjectField = BitField< uint8_t, bool, 0, 1 >
 
using IsOriginalObjectField = BitField< uint8_t, bool, IsObjectField::kNextBit, 1 >
 

Public Member Functions

 ObjectData (ObjectPtr raw_obj)
 
 ObjectData (uint8_t *buf, intptr_t length)
 
bool is_object () const
 
bool is_original_object () const
 
void set_is_object (bool value)
 

Public Attributes

union {
   struct {
      uint8_t *   buf
 
      intptr_t   length
 
   }   bytes
 
   ObjectPtr   raw_obj
 
   const Object *   obj
 
}; 
 
uint8_t flags
 

Detailed Description

Definition at line 523 of file image_snapshot.h.

Member Typedef Documentation

◆ IsObjectField

Definition at line 571 of file image_snapshot.h.

◆ IsOriginalObjectField

Definition at line 572 of file image_snapshot.h.

Constructor & Destructor Documentation

◆ ObjectData() [1/2]

dart::ImageWriter::ObjectData::ObjectData ( ObjectPtr  raw_obj)
inlineexplicit

Definition at line 536 of file image_snapshot.h.

◆ ObjectData() [2/2]

dart::ImageWriter::ObjectData::ObjectData ( uint8_t *  buf,
intptr_t  length 
)
inline

Definition at line 540 of file image_snapshot.h.

541 : bytes({buf, length}),
struct dart::ImageWriter::ObjectData::@163::@165 bytes

Member Function Documentation

◆ is_object()

bool dart::ImageWriter::ObjectData::is_object ( ) const
inline

Definition at line 562 of file image_snapshot.h.

562{ return IsObjectField::decode(flags); }
static constexpr T decode(S value)
Definition: bitfield.h:171

◆ is_original_object()

bool dart::ImageWriter::ObjectData::is_original_object ( ) const
inline

Definition at line 563 of file image_snapshot.h.

563 {
565 }

◆ set_is_object()

void dart::ImageWriter::ObjectData::set_is_object ( bool  value)
inline

Definition at line 567 of file image_snapshot.h.

567 {
569 }
static constexpr S update(T value, S original)
Definition: bitfield.h:188
uint8_t value

Member Data Documentation

◆ 

union { ... } dart::ImageWriter::ObjectData::@164

◆ buf

uint8_t* dart::ImageWriter::ObjectData::buf

Definition at line 548 of file image_snapshot.h.

◆ 

struct { ... } dart::ImageWriter::ObjectData::bytes

◆ flags

uint8_t dart::ImageWriter::ObjectData::flags

Definition at line 560 of file image_snapshot.h.

◆ length

intptr_t dart::ImageWriter::ObjectData::length

Definition at line 549 of file image_snapshot.h.

◆ obj

const Object* dart::ImageWriter::ObjectData::obj

Definition at line 552 of file image_snapshot.h.

◆ raw_obj

ObjectPtr dart::ImageWriter::ObjectData::raw_obj

Definition at line 551 of file image_snapshot.h.


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