srecord 1.65.0
 
Loading...
Searching...
No Matches
endian.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  srecord
 

Enumerations

enum  srecord::endian_t { srecord::endian_big , srecord::endian_little }
 

Functions

const char * srecord::endian_to_string (endian_t x)
 The endian_to_string function may be used to convert an endian value into its string equivalent.
 
unsigned short srecord::decode_word_be (const unsigned char *data)
 The decode_word_be function is used to decode a big-endian 2-byte data buffer into an unsigned short value.
 
unsigned short srecord::decode_word_le (const unsigned char *data)
 The decode_word_le function is used to decode a little-endian 2-byte data buffer into an unsigned short value.
 
unsigned short srecord::endian_decode_word (const unsigned char *data, endian_t order)
 The decode_word_le function is used to decode a little-endian 2-byte data buffer into an unsigned short value.