resvg_parse_tree_from_data method

int resvg_parse_tree_from_data(
  1. Pointer<Char> data,
  2. int len,
  3. Pointer<resvg_options> opt,
  4. Pointer<Pointer<resvg_render_tree>> tree,
)

@brief Creates #resvg_render_tree from data.

See #resvg_is_image_empty for details.

@param data SVG data. Can contain SVG string or gzip compressed data. Must not be NULL. @param len Data length. @param opt Rendering options. Must not be NULL. @param tree Parsed render tree. Should be destroyed via #resvg_tree_destroy. @return #resvg_error

Implementation

int resvg_parse_tree_from_data(
  ffi.Pointer<ffi.Char> data,
  int len,
  ffi.Pointer<resvg_options> opt,
  ffi.Pointer<ffi.Pointer<resvg_render_tree>> tree,
) {
  return _resvg_parse_tree_from_data(
    data,
    len,
    opt,
    tree,
  );
}