kpilot

Pilot::dlp< short > Struct Template Reference

#include <pilot.h>

List of all members.


Public Types

enum  { size = 2 }

Static Public Member Functions

static void append (pi_buffer_t *b, short v)
static int read (const unsigned char *b, unsigned int &offset)
static int read (const pi_buffer_t *b, unsigned int &offset)

Detailed Description

template<>
struct Pilot::dlp< short >

Definition at line 294 of file pilot.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
size 

Definition at line 296 of file pilot.h.


Member Function Documentation

static void Pilot::dlp< short >::append ( pi_buffer_t *  b,
short  v 
) [inline, static]

Definition at line 298 of file pilot.h.

static int Pilot::dlp< short >::read ( const unsigned char *  b,
unsigned int &  offset 
) [inline, static]

Overload to read from a data buffer instead of a real pi_buffer; does no bounds checking.

Definition at line 327 of file pilot.h.

static int Pilot::dlp< short >::read ( const pi_buffer_t *  b,
unsigned int &  offset 
) [inline, static]

Returns the next short (2 byte) value from the buffer, or -1 on error (which is also a valid return value).

Definition at line 309 of file pilot.h.


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