GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LDT / dev > encdec / rhel6-32


Interface   Data Structures   File List   Data Fields   Globals  

apdtemplate.h File Reference

Arithmetic Byte Decoder, template implementation file. More...

#include <PBI/PTR.h>


Detailed Description

Arithmetic Byte Decoder, template implementation file.

Author:
JJRussell - russell@slac.stanford.edu
This file acts as a poor man's C++ template. It contains the real meat of the code. By defining a couple of C macros, (notably the stream access size and the method of loading data from the input stream), one can use this template to generate routines that process
  1. byte streams access as bytes or 32-bit integers. The access style is not of external user concern and is chosen by the implementer strictly on the basis of performance. It turns out on the sun that the byte access method is 20% faster. These are the APD_ routines
  2. 32-bit byte-swapped streams. These are the APD32_ routines

Generated on Thu Feb 9 12:21:10 2012 by  doxygen 1.5.8