chickadee » chicken » blob

Module (chicken blob)

This module contains procedures for dealing with "blobs". Blobs are unstructured byte arrays (basically "binary strings"). You can't do much with them, but they allow conversion to and from SRFI-4 number vectors which define how to access a blob's byte contents.

make-blob

make-blob SIZEprocedure

Returns a blob object of SIZE bytes, aligned on an 8-byte boundary, uninitialized.

blob?

blob? Xprocedure

Returns #t if X is a blob object, or #f otherwise.

blob-size

blob-size BLOBprocedure

Returns the number of bytes in BLOB.

blob->string

blob->string BLOBprocedure

Returns a string with the contents of BLOB.

string->blob

string->blob STRINGprocedure

Returns a blob with the contents of STRING.

blob=?

blob=? BLOB1 BLOB2procedure

Returns #t if the two argument blobs are of the same size and have the same content.


Previous: Module (chicken bitwise)

Next: Module (chicken condition)

Contents »