Ion Fusion Documentation
Release 0.38a1-SNAPSHOT (2026-04-16T19:45:37.790Z)

Module /fusion/lob

Operations on arrays of octets, also known as "lobs" (blob and clob).

is_blob procedure
(is_blob value)

Determines whether a value is of type blob, returning true or false.

is_clob procedure
(is_clob value)

Determines whether a value is of type clob, returning true or false.

lob_digest procedure
(lob_digest lob algorithm)

Generates a message digest for the content of a lob, using the given algorithm. The lob must be a non-null blob or clob containing the bytes to be digested. The algorithm must be a string such as "SHA-256". The result is a non-null blob.

Supported algorithms are "SHA-256" and "SHA-512".

lob_to_hex procedure
(lob_to_hex lob)

Converts a lob to its hex encoding as a string. Returns null.string when given null.clob or null.blob. The returned hex string does not contain a '0x' prefix, and will only contain the characters [0-9a-f].