Copyright (C) 2014-2016 Regents of the University of California. More...
#include <tlv-encoder.h>
Public Attributes | |
struct ndn_DynamicUInt8Array * | output |
A pointer to a ndn_DynamicUInt8Array which receives the encoded output. More... | |
size_t | offset |
The offset into output.array for the next encoding. More... | |
int | enableOutput |
If 0, then only advance offset without writing to output. More... | |
Copyright (C) 2014-2016 Regents of the University of California.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version, with the additional exemption that compiling, linking, and/or using OpenSSL is allowed.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/. A copy of the GNU Lesser General Public License is in the file COPYING. An ndn_TlvEncoder struct is used by all the TLV encoding functions. You should initialize it with ndn_TlvEncoder_initialize. You can set enableOutput to 0 to only advance self->offset without writing to output as a way to pre-compute the length of child elements.
int ndn_TlvEncoder::enableOutput |
If 0, then only advance offset without writing to output.
size_t ndn_TlvEncoder::offset |
The offset into output.array for the next encoding.
struct ndn_DynamicUInt8Array* ndn_TlvEncoder::output |
A pointer to a ndn_DynamicUInt8Array which receives the encoded output.