Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
dart::UntaggedCompressedStackMaps::Payload Struct Reference

#include <raw_object.h>

Public Types

using FlagsAndSizeHeader = uint32_t
 

Public Member Functions

DART_FORCE_INLINE FlagsAndSizeHeader flags_and_size () const
 
DART_FORCE_INLINE void set_flags_and_size (FlagsAndSizeHeader value)
 
uint8_t * data ()
 
const uint8_t * data () const
 

Detailed Description

Definition at line 2151 of file raw_object.h.

Member Typedef Documentation

◆ FlagsAndSizeHeader

Definition at line 2152 of file raw_object.h.

Member Function Documentation

◆ data() [1/2]

uint8_t * dart::UntaggedCompressedStackMaps::Payload::data ( )
inline

Definition at line 2220 of file raw_object.h.

2220 {
2221 return reinterpret_cast<uint8_t*>(this) + sizeof(FlagsAndSizeHeader);
2222 }

◆ data() [2/2]

const uint8_t * dart::UntaggedCompressedStackMaps::Payload::data ( ) const
inline

Definition at line 2224 of file raw_object.h.

2224 {
2225 return reinterpret_cast<const uint8_t*>(this) +
2226 sizeof(FlagsAndSizeHeader);
2227 }

◆ flags_and_size()

DART_FORCE_INLINE FlagsAndSizeHeader dart::UntaggedCompressedStackMaps::Payload::flags_and_size ( ) const
inline

Definition at line 2157 of file raw_object.h.

2157 {
2158 // Note: |this| does not necessarily satisfy alignment requirements
2159 // of uint32_t so we should use bit_cast.
2160 return bit_copy<FlagsAndSizeHeader, Payload>(*this);
2161 }

◆ set_flags_and_size()

DART_FORCE_INLINE void dart::UntaggedCompressedStackMaps::Payload::set_flags_and_size ( FlagsAndSizeHeader  value)
inline

Definition at line 2163 of file raw_object.h.

2163 {
2164 // Note: |this| does not necessarily satisfy alignment requirements
2165 // of uint32_t hence the byte copy below.
2166 memcpy(reinterpret_cast<void*>(this), &value, sizeof(value)); // NOLINT
2167 }

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