5#ifndef FLUTTER_LIB_UI_PAINTING_IMMUTABLE_BUFFER_H_
6#define FLUTTER_LIB_UI_PAINTING_IMMUTABLE_BUFFER_H_
10#include "flutter/fml/macros.h"
11#include "flutter/lib/ui/dart_wrapper.h"
99 DEFINE_WRAPPERTYPEINFO();
100 FML_FRIEND_MAKE_REF_COUNTED(ImmutableBuffer);
101 FML_DISALLOW_COPY_AND_ASSIGN(ImmutableBuffer);
sk_sp< SkData > data() const
Callers should not modify the returned data. This is not exposed to Dart.
static Dart_Handle initFromAsset(Dart_Handle buffer_handle, Dart_Handle asset_name_handle, Dart_Handle callback_handle)
static Dart_Handle init(Dart_Handle buffer_handle, Dart_Handle data, Dart_Handle callback_handle)
size_t length() const
The length of the data in bytes.
static Dart_Handle initFromFile(Dart_Handle buffer_handle, Dart_Handle file_path_handle, Dart_Handle callback_handle)
~ImmutableBuffer() override
void reset(T *ptr=nullptr)
struct _Dart_Handle * Dart_Handle
#define FML_DCHECK(condition)