~ chicken-core (chicken-5) /manual/Module (chicken blob)
Trap1[[tags: manual]]2[[toc:]]34== Module (chicken blob)56This module contains procedures for dealing with "blobs". Blobs are7unstructured byte arrays (basically "binary strings"). You can't do8much with them, but they allow conversion to and from9[[Module srfi-4|SRFI-4 number vectors]] which define how to access a10blob's byte contents.1112=== make-blob1314<procedure>(make-blob SIZE)</procedure>1516Returns a blob object of {{SIZE}} bytes, aligned on an 8-byte boundary,17uninitialized.1819=== blob?2021<procedure>(blob? X)</procedure>2223Returns {{#t}} if {{X}} is a blob object, or24{{#f}} otherwise.2526=== blob-size2728<procedure>(blob-size BLOB)</procedure>2930Returns the number of bytes in {{BLOB}}.3132=== blob->string3334<procedure>(blob->string BLOB)</procedure>3536Returns a string with the contents of {{BLOB}}.3738=== string->blob3940<procedure>(string->blob STRING)</procedure>4142Returns a blob with the contents of {{STRING}}.4344=== blob=?4546<procedure>(blob=? BLOB1 BLOB2)</procedure>4748Returns {{#t}} if the two argument blobs are of the same49size and have the same content.505152---53Previous: [[Module (chicken bitwise)]]5455Next: [[Module (chicken condition)]]