Module opcua_types::encoding

source ·
Expand description

Contains the BinaryEncoder trait and helpers for reading and writing of scalar values and other primitives.

Structs

Traits

OPC UA Binary Encoding interface. Anything that encodes to binary must implement this. It provides functions to calculate the size in bytes of the struct (for allocating memory), encoding to a stream and decoding from a stream.

Functions

Calculates the length in bytes of an array of encoded type
Converts an IO encoding error (and logs when in error) into an EncodingResult
Converts an IO encoding error (and logs when in error) into an EncodingResult
Reads an array of the encoded type from a stream, preserving distinction between null array and empty array
Reads an array of bytes from the stream
Read a 32-bit precision value from the stream
Read a 64-bit precision from the stream
Read an signed 16-bit value from the stream
Read a signed 32-bit value from the stream
Read a signed 64-bit value from the stream
Read an unsigned byte from the stream
Read an unsigned 16-bit value from the stream
Read an unsigned 32-bit value from the stream
Read an unsigned 64-bit value from the stream
Write an array of the encoded type to stream, preserving distinction between null array and empty array
Writes a 32-bit precision value to the stream
Writes a 64-bit precision value to the stream
Writes a signed 16-bit value to the stream
Writes a signed 32-bit value to the stream
Writes a signed 64-bit value to the stream
Writes an unsigned byte to the stream
Writes an unsigned 16-bit value to the stream
Writes an unsigned 32-bit value to the stream
Writes an unsigned 64-bit value to the stream

Type Definitions