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

#include <object.h>

Public Member Functions

 TransferableTypedDataPeer (uint8_t *data, intptr_t length)
 
 ~TransferableTypedDataPeer ()
 
uint8_t * data () const
 
intptr_t length () const
 
FinalizablePersistentHandlehandle () const
 
void set_handle (FinalizablePersistentHandle *handle)
 
void ClearData ()
 

Detailed Description

Definition at line 12513 of file object.h.

Constructor & Destructor Documentation

◆ TransferableTypedDataPeer()

dart::TransferableTypedDataPeer::TransferableTypedDataPeer ( uint8_t *  data,
intptr_t  length 
)
inline

Definition at line 12516 of file object.h.

12517 : data_(data), length_(length), handle_(nullptr) {}
uint8_t * data() const
Definition: object.h:12521

◆ ~TransferableTypedDataPeer()

dart::TransferableTypedDataPeer::~TransferableTypedDataPeer ( )
inline

Definition at line 12519 of file object.h.

12519{ free(data_); }

Member Function Documentation

◆ ClearData()

void dart::TransferableTypedDataPeer::ClearData ( )
inline

Definition at line 12526 of file object.h.

12526 {
12527 data_ = nullptr;
12528 length_ = 0;
12529 handle_ = nullptr;
12530 }

◆ data()

uint8_t * dart::TransferableTypedDataPeer::data ( ) const
inline

Definition at line 12521 of file object.h.

12521{ return data_; }

◆ handle()

FinalizablePersistentHandle * dart::TransferableTypedDataPeer::handle ( ) const
inline

Definition at line 12523 of file object.h.

12523{ return handle_; }

◆ length()

intptr_t dart::TransferableTypedDataPeer::length ( ) const
inline

Definition at line 12522 of file object.h.

12522{ return length_; }

◆ set_handle()

void dart::TransferableTypedDataPeer::set_handle ( FinalizablePersistentHandle handle)
inline

Definition at line 12524 of file object.h.

12524{ handle_ = handle; }
FinalizablePersistentHandle * handle() const
Definition: object.h:12523

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