62 {
66 }
67
68 uint8_t* bytes = nullptr;
69 intptr_t bytes_len = 0;
70 bool is_typed_data = false;
72 is_typed_data = true;
75 object, &typ, reinterpret_cast<void**>(&bytes), &bytes_len));
76 } else {
82 }
83
84 object_ = object;
85 bytes_ = bytes;
86 bytes_len_ = bytes_len;
87 bio_ = BIO_new_mem_buf(bytes, bytes_len);
89 is_typed_data_ = is_typed_data;
90 }
static Dart_Handle NewDartArgumentError(const char *message)
static Dart_Handle ThrowIfError(Dart_Handle handle)
DART_EXPORT uint8_t * Dart_ScopeAllocate(intptr_t size)
DART_EXPORT Dart_Handle Dart_TypedDataAcquireData(Dart_Handle object, Dart_TypedData_Type *type, void **data, intptr_t *len)
DART_EXPORT Dart_Handle Dart_ListGetAsBytes(Dart_Handle list, intptr_t offset, uint8_t *native_array, intptr_t length)
DART_EXPORT Dart_Handle Dart_ListLength(Dart_Handle list, intptr_t *len)
DART_EXPORT bool Dart_IsList(Dart_Handle object)
DART_EXPORT Dart_Handle Dart_ThrowException(Dart_Handle exception)
DART_EXPORT bool Dart_IsTypedData(Dart_Handle handle)