Overview   Class List   Class Hierarchy   Class Members   Functions & Constants   Defines   Header Files  

endian.h File Reference


Detailed Description

-----------------------------------------------------------------------------

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

-----------------------------------------------------------------------------

Macros to convert endianess--------------------------------------------------------------------------


Defines

#define INLINEorSTATIC   inline
#define UIMA_HIBYTEFIRST(array, elem_size, n_elem)   __revarray(array,elem_size,n_elem)
#define UIMA_LOBYTEFIRST(array, elem_size, n_elem)
#define hasUCS2BigEndianBOM(x)   ( *((WORD16*)x) == 0xFEFF )
#define hasUCS2LittleEndianBOM(x)   ( *((WORD16*)x) == 0xFFFE )

Functions

INLINEorSTATIC void __reverse (void *buffer, unsigned int size)
INLINEorSTATIC void __revarray (void *elem_array, unsigned int elem_size, unsigned int n_elem)


Define Documentation

#define INLINEorSTATIC   inline

#define UIMA_HIBYTEFIRST ( array,
elem_size,
n_elem   )     __revarray(array,elem_size,n_elem)

#define UIMA_LOBYTEFIRST ( array,
elem_size,
n_elem   ) 

#define hasUCS2BigEndianBOM (  )     ( *((WORD16*)x) == 0xFEFF )

#define hasUCS2LittleEndianBOM (  )     ( *((WORD16*)x) == 0xFFFE )


Function Documentation

INLINEorSTATIC void __reverse ( void *  buffer,
unsigned int  size 
)

Referenced by __revarray().

INLINEorSTATIC void __revarray ( void *  elem_array,
unsigned int  elem_size,
unsigned int  n_elem 
)

References __reverse().


Generated on Mon Oct 1 11:15:06 2012 for UIMACPP API by  doxygen 1.5.6