set_content


Description:

public void set_content (uint8[]? data, string? type)

Utility function used to set the content of a mime part object to be the provided data.

If data.length is 0, this routine can be used as a way to remove old content (in which case data and type are ignored and may be null).

Parameters:

this

a MimePart

data

data to put into the part

type

Content-Type of the data

length

length of data