CarParser Module
Parser for CAR v1 (Content Addressable aRchive) files used by the AT Protocol firehose.
Functions and values
| Function or value |
Description
|
|
|
|
Read a CID from a CBOR reader and parse it as a Cid value.
|
Full Usage:
readCborCidString reader
Parameters:
CborReader
Returns: Result<string, string>
|
Read a CID from a CBOR reader (DAG-CBOR tag 42 link). Returns the CID string key.
|
Full Usage:
readCidBytes data offset
Parameters:
byte[]
offset : int
Returns: Result<(string * int), string>
|
Read a CID from raw bytes at the given offset. Returns (CID string key, bytesConsumed).
|