[ CCode ( has_construct_function = false ) ]
[ Version ( since = "1.0" ) ]
public Attach.from_bytes (owned Bytes bytes)
Creates a new Attach from the data in bytes.
Takes a reference of bytes
, increase the reference before calling this function if you with to use it afterward. The stored
bytes should be already encoded with used encoding (like base64).
bytes |
The Bytes holding the data used to create the Attach |
The newly created Attach |