File based packet store.
More...
#include <packet.hpp>
Inherits ndnph::KvStore.
template<typename T>
class ndnph::PacketStore< T >
File based packet store.
- Template Parameters
-
T | packet type, which must be default-constructible and decodable. |
◆ get()
Retrieve a packet.
- Parameters
-
key | non-empty key. |
region | where to allocate memory. |
- Returns
- the packet. Empty packet upon error.
◆ KvStore() [1/2]
Constructor to use internal FileStore instance.
◆ KvStore() [2/2]
Constructor to use existing FileStore instance.
◆ set()
template<typename T >
template<typename Encodable >
Store a packet.
- Parameters
-
key | non-empty key. |
value | the packet, which must be encodable. |
region | where to allocate scratch memory for encoding the packet. |
- Returns
- whether success.
The documentation for this class was generated from the following file:
- /home/runner/work/esp8266ndn/NDNph/src/ndnph/store/packet.hpp