Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

beecrypt/endianness.c File Reference

#include "system.h"
#include "endianness.h"
#include "debug.h"

Go to the source code of this file.

Functions

int16 swap16 (int16 n)
uint16 swapu16 (uint16 n)
int32 swap32 (int32 n)
uint32 swapu32 (uint32 n)
int64 swap64 (int64 n)
int encodeByte (javabyte b, byte *data)
int encodeShort (javashort s, byte *data)
int encodeInt (javaint i, byte *data)
int encodeLong (javalong l, byte *data)
int encodeFloat (javafloat f, byte *data)
int encodeDouble (javadouble d, byte *data)
int encodeChar (javachar c, byte *data)
int encodeInts (const javaint *i, byte *data, int count)
int encodeIntsPartial (const javaint *i, byte *data, int bytecount)
int encodeIntsPartialPad (const javaint *i, byte *data, int bytecount, byte padvalue)
int encodeChars (const javachar *c, byte *data, int count)
int decodeByte (javabyte *b, const byte *data)
int decodeShort (javashort *s, const byte *data)
int decodeInt (javaint *i, const byte *data)
int decodeLong (javalong *l, const byte *data)
int decodeFloat (javafloat *f, const byte *data)
int decodeDouble (javadouble *d, const byte *data)
int decodeChar (javachar *c, const byte *data)
int decodeInts (javaint *i, const byte *data, int count)
int decodeIntsPartial (javaint *i, const byte *data, int bytecount)
int decodeChars (javachar *c, const byte *data, int count)
int readByte (javabyte *b, FILE *ifp)
int readShort (javashort *s, FILE *ifp)
int readInt (javaint *i, FILE *ifp)
int readLong (javalong *l, FILE *ifp)
int readChar (javachar *c, FILE *ifp)
int readInts (javaint *i, FILE *ifp, int count)
int readChars (javachar *c, FILE *ifp, int count)
int writeByte (javabyte b, FILE *ofp)
int writeShort (javashort s, FILE *ofp)
int writeInt (javaint i, FILE *ofp)
int writeLong (javalong l, FILE *ofp)
int writeChar (javachar c, FILE *ofp)
int writeInts (const javaint *i, FILE *ofp, int count)
int writeChars (const javachar *c, FILE *ofp, int count)


Function Documentation

int decodeByte javabyte   b,
const byte   data
 

Definition at line 251 of file endianness.c.

References javabyte.

int decodeChar javachar   c,
const byte   data
 

Definition at line 331 of file endianness.c.

References javachar, and swapu16.

int decodeChars javachar   c,
const byte   data,
int    count
 

Definition at line 392 of file endianness.c.

References javachar, and swapu16.

int decodeDouble javadouble   d,
const byte   data
 

Definition at line 316 of file endianness.c.

References javadouble.

int decodeFloat javafloat   f,
const byte   data
 

Definition at line 301 of file endianness.c.

References javafloat.

int decodeInt javaint   i,
const byte   data
 

Definition at line 273 of file endianness.c.

References javaint, and swap32.

int decodeInts javaint   i,
const byte   data,
int    count
 

Definition at line 345 of file endianness.c.

References javaint, and swap32.

int decodeIntsPartial javaint   i,
const byte   data,
int    bytecount
 

Definition at line 364 of file endianness.c.

References javaint, and swap32.

int decodeLong javalong   l,
const byte   data
 

Definition at line 287 of file endianness.c.

References javalong, and swap64.

int decodeShort javashort   s,
const byte   data
 

Definition at line 259 of file endianness.c.

References javashort, and swap16.

int encodeByte javabyte    b,
byte   data
 

Definition at line 84 of file endianness.c.

References javabyte.

int encodeChar javachar    c,
byte   data
 

Definition at line 155 of file endianness.c.

References javachar, and swapu16.

int encodeChars const javachar   c,
byte   data,
int    count
 

Definition at line 232 of file endianness.c.

References javachar, javaint, and swapu16.

int encodeDouble javadouble    d,
byte   data
 

Definition at line 140 of file endianness.c.

References javadouble.

int encodeFloat javafloat    f,
byte   data
 

Definition at line 125 of file endianness.c.

References javafloat.

int encodeInt javaint    i,
byte   data
 

Definition at line 103 of file endianness.c.

References javaint, and swap32.

int encodeInts const javaint   i,
byte   data,
int    count
 

Definition at line 166 of file endianness.c.

References javaint, and swap32.

int encodeIntsPartial const javaint   i,
byte   data,
int    bytecount
 

Definition at line 185 of file endianness.c.

References javaint, and swap32.

int encodeIntsPartialPad const javaint   i,
byte   data,
int    bytecount,
byte    padvalue
 

Definition at line 206 of file endianness.c.

References javaint, and swap32.

int encodeLong javalong    l,
byte   data
 

Definition at line 114 of file endianness.c.

References javalong, and swap64.

int encodeShort javashort    s,
byte   data
 

Definition at line 92 of file endianness.c.

References javashort, and swap16.

int readByte javabyte   b,
FILE *    ifp
 

Definition at line 410 of file endianness.c.

References javabyte.

int readChar javachar   c,
FILE *    ifp
 

Definition at line 461 of file endianness.c.

References javachar, and swapu16.

int readChars javachar   c,
FILE *    ifp,
int    count
 

Definition at line 495 of file endianness.c.

References javachar, and swap16.

int readInt javaint   i,
FILE *    ifp
 

Definition at line 431 of file endianness.c.

References javaint, and swap32.

int readInts javaint   i,
FILE *    ifp,
int    count
 

Definition at line 476 of file endianness.c.

References javaint, and swap32.

int readLong javalong   l,
FILE *    ifp
 

Definition at line 446 of file endianness.c.

References javalong, and swap64.

int readShort javashort   s,
FILE *    ifp
 

Definition at line 416 of file endianness.c.

References javashort, and swap16.

int16 swap16 int16    n
 

Definition at line 31 of file endianness.c.

References int16.

int32 swap32 int32    n
 

Definition at line 43 of file endianness.c.

References int32.

int64 swap64 int64    n
 

Definition at line 59 of file endianness.c.

References int64.

uint16 swapu16 uint16    n
 

Definition at line 37 of file endianness.c.

References uint16.

uint32 swapu32 uint32    n
 

Definition at line 51 of file endianness.c.

References uint32.

int writeByte javabyte    b,
FILE *    ofp
 

Definition at line 513 of file endianness.c.

References javabyte.

int writeChar javachar    c,
FILE *    ofp
 

Definition at line 550 of file endianness.c.

References javachar, and swap16.

int writeChars const javachar   c,
FILE *    ofp,
int    count
 

Definition at line 579 of file endianness.c.

References javachar, and writeChar.

int writeInt javaint    i,
FILE *    ofp
 

Definition at line 530 of file endianness.c.

References javaint, and swap32.

int writeInts const javaint   i,
FILE *    ofp,
int    count
 

Definition at line 560 of file endianness.c.

References javaint, and writeInt.

int writeLong javalong    l,
FILE *    ofp
 

Definition at line 540 of file endianness.c.

References javalong, and swap64.

int writeShort javashort    s,
FILE *    ofp
 

Definition at line 520 of file endianness.c.

References javashort, and swap16.


Generated on Tue Sep 17 15:56:47 2002 for rpm by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002