Functions
sick::read_write_helper Namespace Reference

Functions

int16_t readInt16BigEndian (std::vector< uint8_t >::const_iterator it)
 Read a signed 16-bit integer at offset in big endian encoding. More...
 
int16_t readInt16LittleEndian (std::vector< uint8_t >::const_iterator it)
 Read a signed 16-bit integer at offset in little endian encoding. More...
 
int32_t readInt32BigEndian (std::vector< uint8_t >::const_iterator it)
 Read an unsigned 32-bit integer at offset in big endian encoding. More...
 
int32_t readInt32LittleEndian (std::vector< uint8_t >::const_iterator it)
 Read an unsigned 32-bit integer at offset in little endian encoding. More...
 
int8_t readInt8 (std::vector< uint8_t >::const_iterator it)
 Read a signed 8-bit integer at offset. More...
 
int8_t readInt8BigEndian (std::vector< uint8_t >::const_iterator it)
 Read a signed 8-bit integer at offset in big endian encoding. More...
 
int8_t readInt8LittleEndian (std::vector< uint8_t >::const_iterator it)
 Read a signed 8-bit integer at offset in little endian encoding. More...
 
uint16_t readUint16BigEndian (std::vector< uint8_t >::const_iterator it)
 Read an unsigned 16-bit integer at offset in big endian encoding. More...
 
uint16_t readUint16LittleEndian (std::vector< uint8_t >::const_iterator it)
 Read an unsigned 16-bit integer at offset in little endian encoding. More...
 
uint32_t readUint32BigEndian (std::vector< uint8_t >::const_iterator it)
 Read an unsigned 32-bit integer at offset in big endian encoding. More...
 
uint32_t readUint32LittleEndian (std::vector< uint8_t >::const_iterator it)
 Read an unsigned 32-bit integer at offset in little endian encoding. More...
 
uint8_t readUint8 (std::vector< uint8_t >::const_iterator it)
 Read an unsigned 8-bit integer at offset. More...
 
uint8_t readUint8BigEndian (std::vector< uint8_t >::const_iterator it)
 Read an unsigned 8-bit integer at offset in big endian encoding. More...
 
uint8_t readUint8LittleEndian (std::vector< uint8_t >::const_iterator it)
 Read an unsigned 8-bit integer at offset in big little encoding. More...
 
void writeInt32LittleEndian (std::vector< uint8_t >::iterator it, const int32_t v)
 Writes an unsigned 32-bit integer to a buffer at offset in little endian encoding. More...
 
void writeInt8 (std::vector< uint8_t >::iterator it, const uint8_t v)
 Writes a signed 8-bit integer to a buffer at offset. More...
 
void writeInt8BigEndian (std::vector< uint8_t >::iterator it, const uint8_t v)
 Writes a signed 8-bit integer to a buffer at offset in big endian encoding. More...
 
void writeInt8LittleEndian (std::vector< uint8_t >::iterator it, const uint8_t v)
 Writes a signed 8-bit integer to a buffer at offset in little endian encoding. More...
 
void writeUint16BigEndian (std::vector< uint8_t >::iterator it, const uint16_t v)
 Writes an unsigned 16-bit integer to a buffer at offset in big endian encoding. More...
 
void writeUint16LittleEndian (std::vector< uint8_t >::iterator it, const uint16_t v)
 Writes an unsigned 16-bit integer to a buffer at offset in little endian encoding. More...
 
void writeUint32BigEndian (std::vector< uint8_t >::iterator it, const uint32_t v)
 Writes an unsigned 32-bit integer to a buffer at offset in big endian encoding. More...
 
void writeUint32LittleEndian (std::vector< uint8_t >::iterator it, const uint32_t v)
 Writes an unsigned 32-bit integer to a buffer at offset in little endian encoding. More...
 
void writeUint8 (std::vector< uint8_t >::iterator it, const uint8_t v)
 Helper Functions read and write data at a certain place in a buffer. More...
 
void writeUint8BigEndian (std::vector< uint8_t >::iterator it, const uint8_t v)
 Writes an unsigned 8-bit integer to a buffer at offset in big endian encoding. More...
 
void writeUint8LittleEndian (std::vector< uint8_t >::iterator it, const uint8_t v)
 Writes an unsigned 8-bit integer to a buffer at offset in little endian encoding. More...
 

Function Documentation

◆ readInt16BigEndian()

int16_t sick::read_write_helper::readInt16BigEndian ( std::vector< uint8_t >::const_iterator  it)
inline

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 302 of file ReadWriteHelper.hpp.

◆ readInt16LittleEndian()

int16_t sick::read_write_helper::readInt16LittleEndian ( std::vector< uint8_t >::const_iterator  it)
inline

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 315 of file ReadWriteHelper.hpp.

◆ readInt32BigEndian()

int32_t sick::read_write_helper::readInt32BigEndian ( std::vector< uint8_t >::const_iterator  it)
inline

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 354 of file ReadWriteHelper.hpp.

◆ readInt32LittleEndian()

int32_t sick::read_write_helper::readInt32LittleEndian ( std::vector< uint8_t >::const_iterator  it)
inline

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 368 of file ReadWriteHelper.hpp.

◆ readInt8()

int8_t sick::read_write_helper::readInt8 ( std::vector< uint8_t >::const_iterator  it)
inline

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 237 of file ReadWriteHelper.hpp.

◆ readInt8BigEndian()

int8_t sick::read_write_helper::readInt8BigEndian ( std::vector< uint8_t >::const_iterator  it)
inline

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 250 of file ReadWriteHelper.hpp.

◆ readInt8LittleEndian()

int8_t sick::read_write_helper::readInt8LittleEndian ( std::vector< uint8_t >::const_iterator  it)
inline

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 263 of file ReadWriteHelper.hpp.

◆ readUint16BigEndian()

uint16_t sick::read_write_helper::readUint16BigEndian ( std::vector< uint8_t >::const_iterator  it)
inline

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 276 of file ReadWriteHelper.hpp.

◆ readUint16LittleEndian()

uint16_t sick::read_write_helper::readUint16LittleEndian ( std::vector< uint8_t >::const_iterator  it)
inline

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 289 of file ReadWriteHelper.hpp.

◆ readUint32BigEndian()

uint32_t sick::read_write_helper::readUint32BigEndian ( std::vector< uint8_t >::const_iterator  it)
inline

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 328 of file ReadWriteHelper.hpp.

◆ readUint32LittleEndian()

uint32_t sick::read_write_helper::readUint32LittleEndian ( std::vector< uint8_t >::const_iterator  it)
inline

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 341 of file ReadWriteHelper.hpp.

◆ readUint8()

uint8_t sick::read_write_helper::readUint8 ( std::vector< uint8_t >::const_iterator  it)
inline

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 198 of file ReadWriteHelper.hpp.

◆ readUint8BigEndian()

uint8_t sick::read_write_helper::readUint8BigEndian ( std::vector< uint8_t >::const_iterator  it)
inline

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 211 of file ReadWriteHelper.hpp.

◆ readUint8LittleEndian()

uint8_t sick::read_write_helper::readUint8LittleEndian ( std::vector< uint8_t >::const_iterator  it)
inline

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 224 of file ReadWriteHelper.hpp.

◆ writeInt32LittleEndian()

void sick::read_write_helper::writeInt32LittleEndian ( std::vector< uint8_t >::iterator  it,
const int32_t  v 
)
inline

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.

Definition at line 182 of file ReadWriteHelper.hpp.

◆ writeInt8()

void sick::read_write_helper::writeInt8 ( std::vector< uint8_t >::iterator  it,
const uint8_t  v 
)
inline

Writes a signed 8-bit integer to a buffer at offset.

Parameters
bufThe buffer to write to.
vValue which will be written.

Definition at line 89 of file ReadWriteHelper.hpp.

◆ writeInt8BigEndian()

void sick::read_write_helper::writeInt8BigEndian ( std::vector< uint8_t >::iterator  it,
const uint8_t  v 
)
inline

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.

Definition at line 101 of file ReadWriteHelper.hpp.

◆ writeInt8LittleEndian()

void sick::read_write_helper::writeInt8LittleEndian ( std::vector< uint8_t >::iterator  it,
const uint8_t  v 
)
inline

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.

Definition at line 113 of file ReadWriteHelper.hpp.

◆ writeUint16BigEndian()

void sick::read_write_helper::writeUint16BigEndian ( std::vector< uint8_t >::iterator  it,
const uint16_t  v 
)
inline

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.

Definition at line 125 of file ReadWriteHelper.hpp.

◆ writeUint16LittleEndian()

void sick::read_write_helper::writeUint16LittleEndian ( std::vector< uint8_t >::iterator  it,
const uint16_t  v 
)
inline

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.

Definition at line 138 of file ReadWriteHelper.hpp.

◆ writeUint32BigEndian()

void sick::read_write_helper::writeUint32BigEndian ( std::vector< uint8_t >::iterator  it,
const uint32_t  v 
)
inline

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.

Definition at line 152 of file ReadWriteHelper.hpp.

◆ writeUint32LittleEndian()

void sick::read_write_helper::writeUint32LittleEndian ( std::vector< uint8_t >::iterator  it,
const uint32_t  v 
)
inline

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.

Definition at line 167 of file ReadWriteHelper.hpp.

◆ writeUint8()

void sick::read_write_helper::writeUint8 ( std::vector< uint8_t >::iterator  it,
const uint8_t  v 
)
inline

Helper Functions read and write data at a certain place in a buffer.

Writes an unsigned 8-bit integer to a buffer at offset.

Parameters
bufThe buffer to write to.
vValue which will be written.

Definition at line 53 of file ReadWriteHelper.hpp.

◆ writeUint8BigEndian()

void sick::read_write_helper::writeUint8BigEndian ( std::vector< uint8_t >::iterator  it,
const uint8_t  v 
)
inline

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.

Definition at line 65 of file ReadWriteHelper.hpp.

◆ writeUint8LittleEndian()

void sick::read_write_helper::writeUint8LittleEndian ( std::vector< uint8_t >::iterator  it,
const uint8_t  v 
)
inline

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.

Definition at line 77 of file ReadWriteHelper.hpp.



sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Fri Jun 21 2024 02:40:52