35 #ifndef SICK_SAFETYSCANNERS_DATA_PROCESSING_READWRITEHELPER_H 36 #define SICK_SAFETYSCANNERS_DATA_PROCESSING_READWRITEHELPER_H 41 namespace data_processing {
61 void writeuint8_t(uint8_t*& buf,
const uint8_t v,
const uint16_t offset)
const;
88 void writeint8_t(uint8_t*& buf,
const uint8_t v,
const uint16_t offset)
const;
151 uint8_t
readuint8_t(
const uint8_t*& buf,
const uint16_t offset)
const;
181 int8_t
readint8_t(
const uint8_t*& buffer,
const uint16_t offset)
const;
287 #endif // SICK_SAFETYSCANNERS_DATA_PROCESSING_READWRITEHELPER_H uint16_t readuint16_tBigEndian(const uint8_t *&buf, const uint16_t offset) const
Read an unsigned 16-bit integer at offset in big endian encoding.
uint8_t readuint8_tBigEndian(const uint8_t *&buf, const uint16_t offset) const
Read an unsigned 8-bit integer at offset in big endian encoding.
int16_t readint16_tBigEndian(const uint8_t *&buf, const uint16_t offset) const
Read a signed 16-bit integer at offset in big endian encoding.
int16_t readint16_tLittleEndian(const uint8_t *&buf, const uint16_t offset) const
Read a signed 16-bit integer at offset in little endian encoding.
uint32_t readuint32_tLittleEndian(const uint8_t *&buf, const uint16_t offset) const
Read an unsigned 32-bit integer at offset in little endian encoding.
void writeuint8_tLittleEndian(uint8_t *&buf, const uint8_t v, const uint16_t offset) const
Writes an unsigned 8-bit integer to a buffer at offset in little endian encoding. ...
void writeuint32_tLittleEndian(uint8_t *&buf, const uint32_t v, const uint16_t offset) const
Writes an unsigned 32-bit integer to a buffer at offset in little endian encoding.
int8_t readint8_tBigEndian(const uint8_t *&buf, const uint16_t offset) const
Read a signed 8-bit integer at offset in big endian encoding.
void writeint8_tBigEndian(uint8_t *&buf, const uint8_t v, const uint16_t offset) const
Writes a signed 8-bit integer to a buffer at offset in big endian encoding.
int32_t readint32_tBigEndian(const uint8_t *&buf, const uint16_t offset) const
Read an unsigned 32-bit integer at offset in big endian encoding.
Class to read and write data at a certain place in a buffer.
void writeuint16_tLittleEndian(uint8_t *&buf, const uint16_t v, const uint16_t offset) const
Writes an unsigned 16-bit integer to a buffer at offset in little endian encoding.
void writeuint16_tBigEndian(uint8_t *&buf, const uint16_t v, const uint16_t offset) const
Writes an unsigned 16-bit integer to a buffer at offset in big endian encoding.
int8_t readint8_t(const uint8_t *&buffer, const uint16_t offset) const
Read a signed 8-bit integer at offset.
void writeuint8_t(uint8_t *&buf, const uint8_t v, const uint16_t offset) const
Writes an unsigned 8-bit integer to a buffer at offset.
uint8_t readuint8_tLittleEndian(const uint8_t *&buf, const uint16_t offset) const
Read an unsigned 8-bit integer at offset in big little encoding.
void writeint8_tLittleEndian(uint8_t *&buf, const uint8_t v, const uint16_t offset) const
Writes a signed 8-bit integer to a buffer at offset in little endian encoding.
uint32_t readuint32_tBigEndian(const uint8_t *&buf, const uint16_t offset) const
Read an unsigned 32-bit integer at offset in big endian encoding.
void writeint8_t(uint8_t *&buf, const uint8_t v, const uint16_t offset) const
Writes a signed 8-bit integer to a buffer at offset.
int32_t readint32_tLittleEndian(const uint8_t *&buf, const uint16_t offset) const
Read an unsigned 32-bit integer at offset in little endian encoding.
int8_t readint8_tLittleEndian(const uint8_t *&buf, const uint16_t offset) const
Read a signed 8-bit integer at offset in little endian encoding.
ReadWriteHelper()
Constructor of read and write helper class.
uint16_t readuint16_tLittleEndian(const uint8_t *&buf, const uint16_t offset) const
Read an unsigned 16-bit integer at offset in little endian encoding.
uint8_t readuint8_t(const uint8_t *&buf, const uint16_t offset) const
Read an unsigned 8-bit integer at offset.
void writeuint32_tBigEndian(uint8_t *&buf, const uint32_t v, const uint16_t offset) const
Writes an unsigned 32-bit integer to a buffer at offset in big endian encoding.
void writeuint8_tBigEndian(uint8_t *&buf, const uint8_t v, const uint16_t offset) const
Writes an unsigned 8-bit integer to a buffer at offset in big endian encoding.