Public Member Functions
sick::data_processing::ReadWriteHelper Class Reference

Class to read and write data at a certain place in a buffer. More...

#include <ReadWriteHelper.h>

List of all members.

Public Member Functions

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.
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.
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_t (const uint8_t *&buffer, const uint16_t offset) const
 Read a signed 8-bit integer at offset.
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.
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.
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.
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.
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.
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.
uint8_t readuint8_t (const uint8_t *&buf, const uint16_t offset) const
 Read an unsigned 8-bit integer at offset.
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.
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.
 ReadWriteHelper ()
 Constructor of read and write helper class.
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.
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.
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.
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.
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 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 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.
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.
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.
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.

Detailed Description

Class to read and write data at a certain place in a buffer.

Definition at line 46 of file ReadWriteHelper.h.


Constructor & Destructor Documentation

Constructor of read and write helper class.

Definition at line 40 of file ReadWriteHelper.cpp.


Member Function Documentation

int16_t sick::data_processing::ReadWriteHelper::readint16_tBigEndian ( const uint8_t *&  buf,
const uint16_t  offset 
) const

Read a signed 16-bit integer at offset in big endian encoding.

Parameters:
bufBuffer to read from.
offsetPosition of integer.
Returns:
The value of the read integer.

Definition at line 156 of file ReadWriteHelper.cpp.

int16_t sick::data_processing::ReadWriteHelper::readint16_tLittleEndian ( const uint8_t *&  buf,
const uint16_t  offset 
) const

Read a signed 16-bit integer at offset in little endian encoding.

Parameters:
bufBuffer to read from.
offsetPosition of integer.
Returns:
The value of the read integer.

Definition at line 151 of file ReadWriteHelper.cpp.

int32_t sick::data_processing::ReadWriteHelper::readint32_tBigEndian ( const uint8_t *&  buf,
const uint16_t  offset 
) const

Read an unsigned 32-bit integer at offset in big endian encoding.

Parameters:
bufBuffer to read from.
offsetPosition of integer.
Returns:
The value of the read integer.

Definition at line 205 of file ReadWriteHelper.cpp.

int32_t sick::data_processing::ReadWriteHelper::readint32_tLittleEndian ( const uint8_t *&  buf,
const uint16_t  offset 
) const

Read an unsigned 32-bit integer at offset in little endian encoding.

Parameters:
bufBuffer to read from.
offsetPosition of integer.
Returns:
The value of the read integer.

Definition at line 200 of file ReadWriteHelper.cpp.

int8_t sick::data_processing::ReadWriteHelper::readint8_t ( const uint8_t *&  buffer,
const uint16_t  offset 
) const

Read a signed 8-bit integer at offset.

Parameters:
bufBuffer to read from.
offsetPosition of integer.
Returns:
The value of the read integer.

Definition at line 84 of file ReadWriteHelper.cpp.

int8_t sick::data_processing::ReadWriteHelper::readint8_tBigEndian ( const uint8_t *&  buf,
const uint16_t  offset 
) const

Read a signed 8-bit integer at offset in big endian encoding.

Parameters:
bufBuffer to read from.
offsetPosition of integer.
Returns:
The value of the read integer.

Definition at line 95 of file ReadWriteHelper.cpp.

int8_t sick::data_processing::ReadWriteHelper::readint8_tLittleEndian ( const uint8_t *&  buf,
const uint16_t  offset 
) const

Read a signed 8-bit integer at offset in little endian encoding.

Parameters:
bufBuffer to read from.
offsetPosition of integer.
Returns:
The value of the read integer.

Definition at line 90 of file ReadWriteHelper.cpp.

uint16_t sick::data_processing::ReadWriteHelper::readuint16_tBigEndian ( const uint8_t *&  buf,
const uint16_t  offset 
) const

Read an unsigned 16-bit integer at offset in big endian encoding.

Parameters:
bufBuffer to read from.
offsetPosition of integer.
Returns:
The value of the read integer.

Definition at line 127 of file ReadWriteHelper.cpp.

uint16_t sick::data_processing::ReadWriteHelper::readuint16_tLittleEndian ( const uint8_t *&  buf,
const uint16_t  offset 
) const

Read an unsigned 16-bit integer at offset in little endian encoding.

Parameters:
bufBuffer to read from.
offsetPosition of integer.
Returns:
The value of the read integer.

Definition at line 122 of file ReadWriteHelper.cpp.

uint32_t sick::data_processing::ReadWriteHelper::readuint32_tBigEndian ( const uint8_t *&  buf,
const uint16_t  offset 
) const

Read an unsigned 32-bit integer at offset in big endian encoding.

Parameters:
bufBuffer to read from.
offsetPosition of integer.
Returns:
The value of the read integer.

Definition at line 171 of file ReadWriteHelper.cpp.

uint32_t sick::data_processing::ReadWriteHelper::readuint32_tLittleEndian ( const uint8_t *&  buf,
const uint16_t  offset 
) const

Read an unsigned 32-bit integer at offset in little endian encoding.

Parameters:
bufBuffer to read from.
offsetPosition of integer.
Returns:
The value of the read integer.

Definition at line 166 of file ReadWriteHelper.cpp.

uint8_t sick::data_processing::ReadWriteHelper::readuint8_t ( const uint8_t *&  buf,
const uint16_t  offset 
) const

Read an unsigned 8-bit integer at offset.

Parameters:
bufBuffer to read from.
offsetPosition of integer.
Returns:
The value of the read integer.

Definition at line 45 of file ReadWriteHelper.cpp.

uint8_t sick::data_processing::ReadWriteHelper::readuint8_tBigEndian ( const uint8_t *&  buf,
const uint16_t  offset 
) const

Read an unsigned 8-bit integer at offset in big endian encoding.

Parameters:
bufBuffer to read from.
offsetPosition of integer.
Returns:
The value of the read integer.

Definition at line 56 of file ReadWriteHelper.cpp.

uint8_t sick::data_processing::ReadWriteHelper::readuint8_tLittleEndian ( const uint8_t *&  buf,
const uint16_t  offset 
) const

Read an unsigned 8-bit integer at offset in big little encoding.

Parameters:
bufBuffer to read from.
offsetPosition of integer.
Returns:
The value of the read integer.

Definition at line 51 of file ReadWriteHelper.cpp.

void sick::data_processing::ReadWriteHelper::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.

Parameters:
bufThe buffer to write to.
vValue which will be written.
offsetPosition the value will be written to.

Definition at line 100 of file ReadWriteHelper.cpp.

void sick::data_processing::ReadWriteHelper::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.

Parameters:
bufThe buffer to write to.
vValue which will be written.
offsetPosition the value will be written to.

Definition at line 105 of file ReadWriteHelper.cpp.

void sick::data_processing::ReadWriteHelper::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.

Parameters:
bufThe buffer to write to.
vValue which will be written.
offsetPosition the value will be written to.

Definition at line 112 of file ReadWriteHelper.cpp.

void sick::data_processing::ReadWriteHelper::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.

Parameters:
bufThe buffer to write to.
vValue which will be written.
offsetPosition the value will be written to.

Definition at line 132 of file ReadWriteHelper.cpp.

void sick::data_processing::ReadWriteHelper::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.

Parameters:
bufThe buffer to write to.
vValue which will be written.
offsetPosition the value will be written to.

Definition at line 140 of file ReadWriteHelper.cpp.

void sick::data_processing::ReadWriteHelper::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.

Parameters:
bufThe buffer to write to.
vValue which will be written.
offsetPosition the value will be written to.

Definition at line 186 of file ReadWriteHelper.cpp.

void sick::data_processing::ReadWriteHelper::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.

Parameters:
bufThe buffer to write to.
vValue which will be written.
offsetPosition the value will be written to.

Definition at line 176 of file ReadWriteHelper.cpp.

void sick::data_processing::ReadWriteHelper::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.

Parameters:
bufThe buffer to write to.
vValue which will be written.
offsetPosition the value will be written to.

Definition at line 61 of file ReadWriteHelper.cpp.

void sick::data_processing::ReadWriteHelper::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.

Parameters:
bufThe buffer to write to.
vValue which will be written.
offsetPosition the value will be written to.

Definition at line 66 of file ReadWriteHelper.cpp.

void sick::data_processing::ReadWriteHelper::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.

Parameters:
bufThe buffer to write to.
vValue which will be written.
offsetPosition the value will be written to.

Definition at line 73 of file ReadWriteHelper.cpp.


The documentation for this class was generated from the following files:


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Tue May 7 2019 03:27:37