5#ifndef LIB_TONIC_TYPED_DATA_DART_BYTE_DATA_H_
6#define LIB_TONIC_TYPED_DATA_DART_BYTE_DATA_H_
10#include "third_party/dart/runtime/include/dart_api.h"
25 const void*
data()
const {
return data_; }
26 void*
data() {
return data_; }
30 std::vector<char>
Copy()
const;
33 explicit operator bool()
const {
return data_ !=
nullptr; }
37 intptr_t length_in_bytes_;
Dart_Handle dart_handle() const
static const size_t kExternalSizeThreshold
static Dart_Handle Create(const void *data, size_t length)
const void * data() const
std::vector< char > Copy() const
size_t length_in_bytes() const
struct _Dart_Handle * Dart_Handle
struct _Dart_NativeArguments * Dart_NativeArguments
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
static FfiType ToFfi(DartByteData val)
static DartByteData FromFfi(FfiType val)