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

#include <object.h>

Inheritance diagram for dart::ByteBuffer:
dart::AllStatic

Static Public Member Functions

static constexpr bool ContainsCompressedPointers ()
 
static InstancePtr Data (const Instance &view_obj)
 
static intptr_t NumberOfFields ()
 
static intptr_t data_offset ()
 

Detailed Description

Definition at line 11857 of file object.h.

Member Function Documentation

◆ ContainsCompressedPointers()

static constexpr bool dart::ByteBuffer::ContainsCompressedPointers ( )
inlinestaticconstexpr

Definition at line 11859 of file object.h.

11859 {
11861 }
static constexpr bool ContainsCompressedPointers()
Definition: object.h:329

◆ Data()

static InstancePtr dart::ByteBuffer::Data ( const Instance view_obj)
inlinestatic

Definition at line 11863 of file object.h.

11863 {
11864 ASSERT(!view_obj.IsNull());
11865 return reinterpret_cast<CompressedInstancePtr*>(
11866 reinterpret_cast<uword>(view_obj.untag()) + data_offset())
11867 ->Decompress(view_obj.untag()->heap_base());
11868 }
static intptr_t data_offset()
Definition: object.h:11872
#define ASSERT(E)
void Decompress(const uint8_t *input, intptr_t input_len, uint8_t **output, intptr_t *output_length)
Definition: gzip.cc:15
uintptr_t uword
Definition: globals.h:501

◆ data_offset()

static intptr_t dart::ByteBuffer::data_offset ( )
inlinestatic

Definition at line 11872 of file object.h.

11872 {
11873 return sizeof(UntaggedObject) + (kCompressedWordSize * kDataIndex);
11874 }
static constexpr intptr_t kCompressedWordSize
Definition: globals.h:42

◆ NumberOfFields()

static intptr_t dart::ByteBuffer::NumberOfFields ( )
inlinestatic

Definition at line 11870 of file object.h.

11870{ return kNumFields; }

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