DataBuffer implementation based on DataStore from @ndn/repo package.

Implements

Constructors

Properties

Methods

Constructors

  • Constructor.

    Parameters

    Returns DataStoreBuffer

    Example

    new DataStoreBuffer(await makeInMemoryDataStore())
    

    Remarks

    DataStore is declared as an interface instead of importing, in order to reduce bundle size for webapps that do not use DataBuffer. The trade-off is that, applications wanting to use DataBuffer would have to import @ndn/repo themselves.

Properties

store: DataStore

Methods