Encodes UnixFS Raw node (a leaf node of the file DAG layout). This representation had been subsumed by FileChunk representation and therefor is marked as deprecated.

UnixFS consumers are very likely to encounter nodes of this type, as of this writing JS & Go implementations can be configured to produce these nodes, in trickle DAG use this configuration.

UnixFS producers are RECOMMENDED to either use FileChunk representation or better yet raw binary nodes (That is 0x55 multicodec) which will likely relpace them in the future.

See

https://github.com/multiformats/multicodec/blob/master/table.csv#L39

Please note that in the wild Raw nodes are likely to come with other fiels encoded but both encoder and decoder presented here will ignore them.

Deprecated

Hierarchy

  • Raw

Properties

Properties

content: Uint8Array

Raw bytes of the content

type: Raw

Generated using TypeDoc