fill_with_bytes


Description:

public bool fill_with_bytes (string media_type, owned Bytes bytes)

A convenience method to fill this with data from Bytes.

For more info, see [method@Clapper.Harvest.fill] documentation.

Parameters:

this

a Harvest

media_type

media mime type

bytes

a Bytes to fill this

Returns:

true when filled successfully, false if taken data was empty.