buffer


Description:

public bool buffer (Type type, ProcessFlags flags, File related_file, uint8[]? buffer, string mime, string? artist, string? title) throws Error

Processes a memory buffer represented by buffer and buffer.length.

If you have extracted any embedded media art and passed this in as buffer, the image data will be converted to the correct format and saved in the media art cache.

Either artist OR title can be null, but they can not both be null.

If file is on a removable filesystem, the media art file will be saved in a cache on the removable file system rather than on the host machine.

Parameters:

this

Media art process object

type

The type of media

flags

The options given for how to process the media art

related_file

File related to the media art

buffer

a buffer containing file data, or null

mime

MIME type of buffer, or null

artist

The artist name file or null

title

The title for file or null

len

length of buffer, or 0

Returns:

true if file could be processed or false if throws is set.




2022 vala-language.org