Flutter Engine
The Flutter Engine
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 2172 of file raw_object.h.

Member Typedef Documentation

◆ FlagsAndSizeHeader

Definition at line 2173 of file raw_object.h.

Member Function Documentation

◆ data() [1/2]

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

Definition at line 2241 of file raw_object.h.

2241 {
2242 return reinterpret_cast<uint8_t*>(this) + sizeof(FlagsAndSizeHeader);
2243 }

◆ data() [2/2]

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

Definition at line 2245 of file raw_object.h.

2245 {
2246 return reinterpret_cast<const uint8_t*>(this) +
2247 sizeof(FlagsAndSizeHeader);
2248 }

◆ flags_and_size()

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

Definition at line 2178 of file raw_object.h.

2178 {
2179 // Note: |this| does not necessarily satisfy alignment requirements
2180 // of uint32_t so we should use bit_cast.
2181 return bit_copy<FlagsAndSizeHeader, Payload>(*this);
2182 }

◆ set_flags_and_size()

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

Definition at line 2184 of file raw_object.h.

2184 {
2185 // Note: |this| does not necessarily satisfy alignment requirements
2186 // of uint32_t hence the byte copy below.
2187 memcpy(reinterpret_cast<void*>(this), &value, sizeof(value)); // NOLINT
2188 }
uint8_t value

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