21 #ifndef __SBG_STREAM_BUFFER_LE_H__ 22 #define __SBG_STREAM_BUFFER_LE_H__ 57 #if (SBG_CONFIG_UNALIGNED_ACCESS_AUTH == 1) && (SBG_CONFIG_BIG_ENDIAN == 0) 68 return bytesValues[0];
79 #if (SBG_CONFIG_BIG_ENDIAN == 1) 80 return bytesValues[1] | (bytesValues[0] << 8);
82 return bytesValues[0] | (bytesValues[1] << 8);
128 #if (SBG_CONFIG_UNALIGNED_ACCESS_AUTH == 1) && (SBG_CONFIG_BIG_ENDIAN == 0) 139 return bytesValues[0];
150 #if (SBG_CONFIG_BIG_ENDIAN == 1) 151 return bytesValues[1] | (bytesValues[0] << 8);
153 return bytesValues[0] | (bytesValues[1] << 8);
179 int32 bytesValues[3];
206 #if (SBG_CONFIG_BIG_ENDIAN == 1) 207 return bytesValues[2] | (bytesValues[1] << 8) | (bytesValues[0] << 16);
209 return bytesValues[0] | (bytesValues[1] << 8) | (bytesValues[2] << 16);
261 #if (SBG_CONFIG_BIG_ENDIAN == 1) 262 return bytesValues[2] | (bytesValues[1] << 8) | (bytesValues[0] << 16);
264 return bytesValues[0] | (bytesValues[1] << 8) | (bytesValues[2] << 16);
289 int32 bytesValues[4];
309 #if (SBG_CONFIG_UNALIGNED_ACCESS_AUTH == 1) && (SBG_CONFIG_BIG_ENDIAN == 0) 320 return bytesValues[0];
333 #if (SBG_CONFIG_BIG_ENDIAN == 1) 334 return bytesValues[3] | (bytesValues[2] << 8) | (bytesValues[1] << 16) | (bytesValues[0] << 24);
336 return bytesValues[0] | (bytesValues[1] << 8) | (bytesValues[2] << 16) | (bytesValues[3] << 24);
382 #if (SBG_CONFIG_UNALIGNED_ACCESS_AUTH == 1) && (SBG_CONFIG_BIG_ENDIAN == 0) 393 return bytesValues[0];
406 #if (SBG_CONFIG_BIG_ENDIAN == 1) 407 return bytesValues[3] | (bytesValues[2] << 8) | (bytesValues[1] << 16) | (bytesValues[0] << 24);
409 return bytesValues[0] | (bytesValues[1] << 8) | (bytesValues[2] << 16) | (bytesValues[3] << 24);
456 #if (SBG_CONFIG_UNALIGNED_ACCESS_AUTH == 1) && (SBG_CONFIG_BIG_ENDIAN == 0) 478 #if (SBG_CONFIG_BIG_ENDIAN == 1) 479 return (lowPart << 32) | highPart;
481 return lowPart | (highPart << 32);
528 #if (SBG_CONFIG_UNALIGNED_ACCESS_AUTH == 1) && (SBG_CONFIG_BIG_ENDIAN == 0) 550 #if (SBG_CONFIG_BIG_ENDIAN == 1) 551 return (lowPart << 32) | highPart;
553 return lowPart | (highPart << 32);
643 return floatInt.
valF;
692 return doubleInt.
valF;
739 #if (SBG_CONFIG_UNALIGNED_ACCESS_AUTH == 1) && (SBG_CONFIG_BIG_ENDIAN == 0) 753 #if (SBG_CONFIG_BIG_ENDIAN == 1) 800 #if (SBG_CONFIG_UNALIGNED_ACCESS_AUTH == 1) && (SBG_CONFIG_BIG_ENDIAN == 0) 814 #if (SBG_CONFIG_BIG_ENDIAN == 1) 867 #if (SBG_CONFIG_BIG_ENDIAN == 1) 928 #if (SBG_CONFIG_BIG_ENDIAN == 1) 984 #if (SBG_CONFIG_UNALIGNED_ACCESS_AUTH == 1) && (SBG_CONFIG_BIG_ENDIAN == 0) 998 #if (SBG_CONFIG_BIG_ENDIAN == 1) 1049 #if (SBG_CONFIG_UNALIGNED_ACCESS_AUTH == 1) && (SBG_CONFIG_BIG_ENDIAN == 0) 1063 #if (SBG_CONFIG_BIG_ENDIAN == 1) 1114 #if (SBG_CONFIG_UNALIGNED_ACCESS_AUTH == 1) && (SBG_CONFIG_BIG_ENDIAN == 0) 1128 #if (SBG_CONFIG_BIG_ENDIAN == 1) 1187 #if (SBG_CONFIG_UNALIGNED_ACCESS_AUTH == 1) && (SBG_CONFIG_BIG_ENDIAN == 0) 1201 #if (SBG_CONFIG_BIG_ENDIAN == 1) 1300 floatInt.
valF = value;
1334 doubleInt.
valF = value;
SBG_INLINE int32 sbgStreamBufferReadInt24LE(SbgStreamBuffer *pHandle)
SBG_INLINE size_t sbgStreamBufferReadSizeT32LE(SbgStreamBuffer *pHandle)
SBG_INLINE float sbgStreamBufferReadFloatLE(SbgStreamBuffer *pHandle)
SBG_INLINE SbgErrorCode sbgStreamBufferWriteInt32LE(SbgStreamBuffer *pHandle, int32 value)
SBG_INLINE int64 sbgStreamBufferReadInt64LE(SbgStreamBuffer *pHandle)
Used to read/write data from/to a memory buffer stream.
SBG_INLINE int16 sbgStreamBufferReadInt16LE(SbgStreamBuffer *pHandle)
SBG_INLINE uint64 sbgStreamBufferReadUint64LE(SbgStreamBuffer *pHandle)
SBG_INLINE SbgErrorCode sbgStreamBufferWriteSizeT32LE(SbgStreamBuffer *pHandle, size_t value)
SBG_INLINE SbgErrorCode sbgStreamBufferWriteDoubleLE(SbgStreamBuffer *pHandle, double value)
SBG_INLINE uint16 sbgStreamBufferReadUint16LE(SbgStreamBuffer *pHandle)
SBG_INLINE SbgErrorCode sbgStreamBufferWriteUint64LE(SbgStreamBuffer *pHandle, uint64 value)
unsigned long long int uint64
SBG_INLINE SbgErrorCode sbgStreamBufferWriteSizeT64LE(SbgStreamBuffer *pHandle, size_t value)
signed long long int int64
SBG_INLINE SbgErrorCode sbgStreamBufferWriteInt24LE(SbgStreamBuffer *pHandle, int32 value)
SBG_INLINE size_t sbgStreamBufferGetSpace(SbgStreamBuffer *pHandle)
SBG_INLINE SbgErrorCode sbgStreamBufferWriteInt64LE(SbgStreamBuffer *pHandle, int64 value)
SBG_INLINE size_t sbgStreamBufferReadSizeT64LE(SbgStreamBuffer *pHandle)
SBG_INLINE uint32 sbgStreamBufferReadUint32LE(SbgStreamBuffer *pHandle)
SBG_INLINE SbgErrorCode sbgStreamBufferWriteInt16LE(SbgStreamBuffer *pHandle, int16 value)
SBG_INLINE SbgErrorCode sbgStreamBufferWriteUint16LE(SbgStreamBuffer *pHandle, uint16 value)
SBG_INLINE SbgErrorCode sbgStreamBufferWriteFloatLE(SbgStreamBuffer *pHandle, float value)
SBG_INLINE SbgErrorCode sbgStreamBufferWriteUint32LE(SbgStreamBuffer *pHandle, uint32 value)
#define SBG_ASSERT(expression)
SBG_INLINE SbgErrorCode sbgStreamBufferWriteUint24LE(SbgStreamBuffer *pHandle, uint32 value)
SBG_INLINE int32 sbgStreamBufferReadInt32LE(SbgStreamBuffer *pHandle)
SBG_INLINE uint32 sbgStreamBufferReadUint24LE(SbgStreamBuffer *pHandle)
SBG_INLINE double sbgStreamBufferReadDoubleLE(SbgStreamBuffer *pHandle)
enum _SbgErrorCode SbgErrorCode