getContent method

Future<Uint8List> getContent([
  1. int? sizeHint
])

Write the content of the item to a byte array and return its length

@param this_ the object handle @paramout buf the output byte buffer @param buf_size the maximum number of bytes to be written to buf

Implementation

Future<_i6.Uint8List> getContent([int? sizeHint]) async {
  final data = await _isolate.invoke<_i7.TransferableTypedData>(
    #etebase_item_get_content,
    <dynamic>[
      _pointer.address,
      sizeHint,
    ],
  );
  return data.materialize().asUint8List();
}