Class: FileRecord

blockstore/records~FileRecord()

File Record

Constructor

new FileRecord()

Create a file record.

Source:

Methods

(static) fromRaw(hash, data) → {ChainState}

Instantiate file record from serialized data.

Parameters:
Name Type Description
hash Hash
data Buffer
Source:
Returns:
Type
ChainState

(private) fromRaw(data)

Inject properties from serialized data.

Parameters:
Name Type Description
data Buffer
Source:

toRaw() → {Buffer}

Serialize the file record.

Source:
Returns:
Type
Buffer