write


Description:

[ Version ( deprecated = true , deprecated_since = "2.46." ) ]
public bool write (uint8[] buf) throws Error

Warning: write is deprecated since 2.46..

Loads the next buf.length bytes of the image.

Note:

Use [[email protected]_stream_sync] or the constructor functions [[email protected]_from_gfile_sync] or [ [email protected]_from_stream_sync]. This function is deprecated because it will accumulate data from the buf in memory until [[email protected]] gets called. To avoid a big temporary buffer, use the suggested functions, which take a `GFile` or a `GInputStream` and do not require a temporary buffer.

You can call this function multiple times until the whole document is consumed; then you must call [[email protected]] to actually parse the document.

Before calling this function for the first time, you may need to call [[email protected]_base_uri] or [ [email protected]_base_gfile] to set the "base file" for resolving references to external resources. SVG elements like `<image> ` which reference external resources will be resolved relative to the location you specify with those functions.

Parameters:

this

an [[email protected]]

buf

pointer to svg data

count

length of the buf buffer in bytes

Returns:

`TRUE` on success, or `FALSE` on error.




2022 vala-language.org