Bits.h

Go to the documentation of this file.
00001 #ifndef JAVA_IO_BITS_H
00002 #define JAVA_IO_BITS_H 1
00003 
00004 #ifndef JAVA_LANG_OBJECT_H
00005 #include <java_lang/Object.h>
00006 #endif /* JAVA_LANG_OBJECT_H */
00007 
00008 namespace java {
00009   namespace io {
00010 
00015     class JAVA_IO_SPEC Bits : public Object {
00016 
00017     public:
00018   
00019       static jboolean getBoolean(const Array<jbyte>& b, jint off);
00020       static jchar getChar(const Array<jbyte>& b, jint off, jboolean littleEndian = false);
00021       static jshort getShort(const Array<jbyte>& b, jint off, jboolean littleEndian = false);
00022       static jint getInt(const Array<jbyte>& b, jint off, jboolean littleEndian = false);
00023       static jfloat getFloat(const Array<jbyte>& b, jint off, jboolean littleEndian = false);
00024       static jlong getLong(const Array<jbyte>& b, jint off, jboolean littleEndian = false);
00025       static jdouble getDouble(const Array<jbyte>& b, jint off, jboolean littleEndian = false);
00026       static void putBoolean(Array<jbyte>& b, jint off, jboolean val);
00027       static void putChar(Array<jbyte>& b, jint off, jchar val, jboolean littleEndian = false);
00028       static void putShort(Array<jbyte>& b, jint off, jshort val, jboolean littleEndian = false);
00029       static void putInt(Array<jbyte>& b, jint off, jint val, jboolean littleEndian = false);
00030       static void putFloat(Array<jbyte>& b, jint off, jfloat val, jboolean littleEndian = false);
00031       static void putLong(Array<jbyte>& b, jint off, jlong val, jboolean littleEndian = false);
00032       static void putDouble(Array<jbyte>& b, jint off, jdouble val, jboolean littleEndian = false);
00033 
00034     private:
00035 
00036       REGISTER_MEMBERS;
00037 
00038     };
00039 
00040   } // namespace io
00041 } // namespace java
00042 
00043 #endif /* JAVA_IO_BITS_H */

Generated on Fri May 16 11:54:42 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3