java::io::Bits Class Reference

Inheritance diagram for java::io::Bits:

Inheritance graph
java::lang::Object
[legend]
Collaboration diagram for java::io::Bits:

Collaboration graph
java::lang::Object
[legend]

List of all members.


Detailed Description

Utility methods for packing/unpacking primitive values in/out of byte arrays using big-endian byte ordering as a default.

Static Public Member Functions

static jboolean getBoolean (const Array< jbyte > &b, jint off)
static jchar getChar (const Array< jbyte > &b, jint off, jboolean littleEndian=false)
static jshort getShort (const Array< jbyte > &b, jint off, jboolean littleEndian=false)
static jint getInt (const Array< jbyte > &b, jint off, jboolean littleEndian=false)
static jfloat getFloat (const Array< jbyte > &b, jint off, jboolean littleEndian=false)
static jlong getLong (const Array< jbyte > &b, jint off, jboolean littleEndian=false)
static jdouble getDouble (const Array< jbyte > &b, jint off, jboolean littleEndian=false)
static void putBoolean (Array< jbyte > &b, jint off, jboolean val)
static void putChar (Array< jbyte > &b, jint off, jchar val, jboolean littleEndian=false)
static void putShort (Array< jbyte > &b, jint off, jshort val, jboolean littleEndian=false)
static void putInt (Array< jbyte > &b, jint off, jint val, jboolean littleEndian=false)
static void putFloat (Array< jbyte > &b, jint off, jfloat val, jboolean littleEndian=false)
static void putLong (Array< jbyte > &b, jint off, jlong val, jboolean littleEndian=false)
static void putDouble (Array< jbyte > &b, jint off, jdouble val, jboolean littleEndian=false)

Member Function Documentation

static jboolean java::io::Bits::getBoolean ( const Array< jbyte > &  b,
jint  off 
) [static]

static jchar java::io::Bits::getChar ( const Array< jbyte > &  b,
jint  off,
jboolean  littleEndian = false 
) [static]

static jshort java::io::Bits::getShort ( const Array< jbyte > &  b,
jint  off,
jboolean  littleEndian = false 
) [static]

static jint java::io::Bits::getInt ( const Array< jbyte > &  b,
jint  off,
jboolean  littleEndian = false 
) [static]

static jfloat java::io::Bits::getFloat ( const Array< jbyte > &  b,
jint  off,
jboolean  littleEndian = false 
) [static]

static jlong java::io::Bits::getLong ( const Array< jbyte > &  b,
jint  off,
jboolean  littleEndian = false 
) [static]

static jdouble java::io::Bits::getDouble ( const Array< jbyte > &  b,
jint  off,
jboolean  littleEndian = false 
) [static]

static void java::io::Bits::putBoolean ( Array< jbyte > &  b,
jint  off,
jboolean  val 
) [static]

static void java::io::Bits::putChar ( Array< jbyte > &  b,
jint  off,
jchar  val,
jboolean  littleEndian = false 
) [static]

static void java::io::Bits::putShort ( Array< jbyte > &  b,
jint  off,
jshort  val,
jboolean  littleEndian = false 
) [static]

static void java::io::Bits::putInt ( Array< jbyte > &  b,
jint  off,
jint  val,
jboolean  littleEndian = false 
) [static]

static void java::io::Bits::putFloat ( Array< jbyte > &  b,
jint  off,
jfloat  val,
jboolean  littleEndian = false 
) [static]

static void java::io::Bits::putLong ( Array< jbyte > &  b,
jint  off,
jlong  val,
jboolean  littleEndian = false 
) [static]

static void java::io::Bits::putDouble ( Array< jbyte > &  b,
jint  off,
jdouble  val,
jboolean  littleEndian = false 
) [static]


The documentation for this class was generated from the following file:
Generated on Fri May 16 11:56:26 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3