Usage
var Decoder = var fs = fs
Note: The decoder will not check CRC-32s or lengths against blob data for you. You may wish to:
var crcHash = var assert = decoder
Writing
blob-log-encoder and stream-to-blob-log are packages for writing blob to blob-log files.
File Format
blob-log log files consist of an integer equal to the sequence number of the first blob in the file, followed by one or more blob records. Each blob record consists of:
-
an integer equal to a CRC-32 error-correcting code for the blob
-
an integer equal to the number of bytes in the blob
-
the blob's bytes
All integers are big-endian, unsigned, and 32 bits long.