Actions
Bug #1256
closedEncodingBuffer::block throws if estimated size is not exact
Start date:
Due date:
% Done:
0%
Estimated time:
Description
// g++ encoding-buffer.cpp -lndn-cpp-dev -pthread -lboost_system -lboost_filesystem -lcrypto -lcryptopp -lsqlite3
#include <ndn-cpp-dev/encoding/block.hpp>
#include <ndn-cpp-dev/encoding/encoding-buffer.hpp>
int
main()
{
uint8_t value[4];
ndn::EncodingBuffer blk;
size_t length = blk.prependByteArray(value, sizeof(value));
blk.prependVarNumber(length);
blk.prependVarNumber(0xe0);
blk.block();
}
Actions