The Assimilation Project  based on Assimilation version 0.5.1441048221
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
intframe.c File Reference

Implements IntFrame Frame class type. More...

#include <string.h>
#include <projectcommon.h>
#include <frameset.h>
#include <intframe.h>
#include <frametypes.h>
#include <generic_tlv_min.h>
#include <tlvhelper.h>
Include dependency graph for intframe.c:

Go to the source code of this file.


FSTATIC int _intframe_intlength (IntFrame *self)
 Return number of bytes in this integer. More...
FSTATIC void _intframe_setint (IntFrame *self, guint64 value)
 Set the integer value associated with an IntFrame. More...
FSTATIC guint64 _intframe_getint (IntFrame *self)
 Get the integer value associated with an IntFrame. More...
FSTATIC void _intframe_updatedata (Frame *, gpointer, gconstpointer, FrameSet *)
FSTATIC gboolean _intframe_isvalid (const Frame *self,gconstpointer tlvptr,gconstpointer pktend)
 Return TRUE if this integer is valid - basically is it of one of our supported lengths... More...
FSTATIC gchar * _intframe_toString (gconstpointer obj)
 Return a printable representation of our IntFrame object. More...
IntFrameintframe_new (guint16 frametype, int intbytes)
 Construct new IntFrame object. More...
Frameintframe_tlvconstructor (gpointer tlvstart, gconstpointer pktend, gpointer *ignorednewpkt, gpointer *ignoredpktend)
 Given marshalled data corresponding to an IntFrame (integer frame), return that corresponding Frame In other words, un-marshall the data... More...

Detailed Description

Implements IntFrame Frame class type.

This Frame class subclass implements 2, 3, 4, and 8 byte integers.

This file is part of the Assimilation Project.

Copyright © 2011, 2012 - Alan Robertson
The Assimilation software is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The Assimilation software 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 General Public License for more details.

You should have received a copy of the GNU General Public License along with the Assimilation Project software. If not, see

Definition in file intframe.c.