GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TLV_DECODE (3)

NAME

tlv_encode, tlv_decode - TLV Manipulation Functions

CONTENTS

Library
Synopsis
Description
Return Values
See Also
Authors

LIBRARY

Mifare card manipulation library (libfreefare, -lfreefare)

SYNOPSIS


.In freefare.h uint8_t * tlv_encode const uint8_t type const uint8_t *istream uint16_t isize size_t *osize uint8_t * tlv_decode const uint8_t *istream uint8_t *type uint16_t *size

DESCRIPTION

The tlv_encode and tlv_decode functions are helpers to manipulate TLV (Text-Length-Value) data.

The tlv_encode function converts the isize bytes long istream message into a TLV stream of type type and set the value of osize to the length of the returned stream.

The tlv_decode function converts the istream TLV stream and set the type argument according to the type of the stream, and set the size argument to the length of the returned stream.

RETURN VALUES

Both functions return memory allocated using malloc(3) which should be reclaimed using free(3) after usage.

SEE ALSO

freefare(3), malloc(3), free(3)

AUTHORS


.An Romain Tartiere Aq romain@blogreen.org
.An Romuald Conty Aq romuald@libnfc.org
Search for    or go to Top of page |  Section 3 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.