Public Attributes | List of all members
ndn_TlvEncoder Struct Reference

Copyright (C) 2014-2016 Regents of the University of California. More...

#include <tlv-encoder.h>

Inheritance diagram for ndn_TlvEncoder:
ndn::TlvEncoder

Public Attributes

struct ndn_DynamicUInt8Arrayoutput
 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...
 

Detailed Description

Copyright (C) 2014-2016 Regents of the University of California.

Author
: Jeff Thompson jefft.nosp@m.0@re.nosp@m.map.u.nosp@m.cla..nosp@m.edu Derived from tlv.hpp by Alexander Afanasyev alexa.nosp@m.nder.nosp@m..afan.nosp@m.asye.nosp@m.v@ucl.nosp@m.a.ed.nosp@m.u

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.

Member Data Documentation

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.


The documentation for this struct was generated from the following file: