00001 // This is core/vil1/vil1_16bit.h 00002 #ifndef vil1_16bit_h_ 00003 #define vil1_16bit_h_ 00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE 00005 #pragma interface 00006 #endif 00007 //: 00008 // \file 00009 // \brief read/write integers to/from vil1_stream 00010 // 00011 // Functions to read and write integers to and from a vil1_stream. 00012 // The endianness refers to the format in the stream, not the 00013 // native format of the compiler or execution environment. 00014 // 00015 // \author fsm 00016 // 00017 // \verbatim 00018 // Modifications 00019 // Peter Vanroose, July 2000: corrected serious bug: VXL_LITTLE_ENDIAN not needed 00020 // (implementation was wrong for VXL_BIG_ENDIAN machines) 00021 // \endverbatim 00022 00023 class vil1_stream; 00024 00025 unsigned vil1_16bit_read_big_endian(vil1_stream *); 00026 unsigned vil1_16bit_read_little_endian(vil1_stream *); 00027 00028 void vil1_16bit_write_big_endian(vil1_stream *, unsigned); 00029 void vil1_16bit_write_little_endian(vil1_stream *, unsigned); 00030 00031 #endif // vil1_16bit_h_
1.5.1