Luna::Variant::blob_detach

Blob blob_detach()

Detaches and gets the data of one BLOB variant as a Blob object.

After this operation, this variant is still a BLOB variant, but contains no binary data ( blob_data returns nullptr, and blob_size returns 0).

Return value

Returns the detached blob data if the variant is a BLOB variant. Returns one empty Blob object otherwise.