packable.cpp File Reference

#include "function.h"
#include "packable.h"
#include <math.h>

Include dependency graph for packable.cpp:

Go to the source code of this file.

Namespaces

namespace  basis

Functions

void basis::rotate_in (byte_array &attach_into, int to_attach, int size_in_bytes)
void basis::snag_out (byte_array &eat_from, u_int &accumulator, int size_in_bytes)
int basis::packed_size (byte_array &packed_form)
 Reports the size required to pack a byte array into a byte array.
void basis::attach (byte_array &packed_form, const byte_array &to_attach)
 Packs a byte_array "to_attach" into "packed_form".
bool basis::detach (byte_array &packed_form, byte_array &to_detach)
 Unpacks a byte_array "to_detach" from "packed_form".
void basis::attach (byte_array &packed_form, u_int to_attach)
 Packs an unsigned integer "to_attach" into "packed_form".
bool basis::detach (byte_array &packed_form, u_int &to_detach)
 Unpacks an unsigned integer "to_attach" from "packed_form".
void basis::attach (byte_array &packed_form, u_short to_attach)
 Packs an unsigned short integer "to_attach" into "packed_form".
bool basis::detach (byte_array &packed_form, u_short &to_detach)
 Unpacks an unsigned short integer "to_attach" from "packed_form".
void basis::attach (byte_array &packed_form, byte to_attach)
 Packs a byte "to_attach" into "packed_form".
bool basis::detach (byte_array &packed_form, byte &to_detach)
 Unpacks a byte "to_detach" from "packed_form".
void basis::attach (byte_array &packed_form, int to_attach)
 Packs an integer "to_attach" into "packed_form".
bool basis::detach (byte_array &packed_form, int &to_detach)
 Unpacks an integer "to_attach" from "packed_form".
void basis::attach (byte_array &packed_form, u_long to_attach)
 Packs an unsigned long integer "to_attach" into "packed_form".
bool basis::detach (byte_array &packed_form, u_long &to_detach)
 Unpacks an unsigned long integer "to_attach" from "packed_form".
void basis::attach (byte_array &packed_form, long to_attach)
 Packs a long integer "to_attach" into "packed_form".
bool basis::detach (byte_array &packed_form, long &to_detach)
 Unpacks a long integer "to_attach" from "packed_form".
void basis::attach (byte_array &packed_form, short to_attach)
 Packs a short integer "to_attach" into "packed_form".
bool basis::detach (byte_array &packed_form, short &to_detach)
 Unpacks a short integer "to_attach" from "packed_form".
void basis::attach (byte_array &packed_form, char to_attach)
 Packs a char "to_attach" into "packed_form".
bool basis::detach (byte_array &packed_form, char &to_detach)
 Unpacks a char "to_detach" from "packed_form".
void basis::attach (byte_array &packed_form, bool to_attach)
 Packs a bool "to_attach" into "packed_form".
void basis::attach (byte_array &packed_form, const char *to_attach)
 Packs a character string "to_attach" into "packed_form".
bool basis::detach (byte_array &packed_form, istring &to_detach)
 Unpacks a character string "to_attach" from "packed_form".
bool basis::detach (byte_array &packed_form, bool &to_detach)
 Unpacks a bool "to_detach" from "packed_form".
double basis::break_off_digit (double &input)
void basis::attach (byte_array &packed_form, double to_pack)
 Packs a double precision floating point "to_attach" into "packed_form".
bool basis::detach (byte_array &packed_form, double &to_unpack)
 Unpacks a double precision floating point "to_attach" from "packed_form".
void basis::attach (byte_array &packed_form, float to_pack)
 Packs a floating point "to_attach" into "packed_form".
bool basis::detach (byte_array &packed_form, float &to_unpack)
 Unpacks a floating point "to_attach" from "packed_form".
void basis::obscure_attach (byte_array &packed_form, int to_attach)
 like the normal attach but shifts in some recognizable sentinel data.
bool basis::obscure_detach (byte_array &packed_form, int &to_detach)
 shifts the number back and checks validity, false returned if corrupted.


Generated on Fri Nov 28 04:29:57 2008 for HOOPLE Libraries by  doxygen 1.5.1