Expand description
Contains the BinaryEncoder trait and helpers for reading and writing of scalar values and
other primitives.
Structs§
Traits§
- Binary
Encoder - 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§
- byte_
len_ array - Calculates the length in bytes of an array of encoded type
- process_
decode_ io_ result - Converts an IO encoding error (and logs when in error) into an EncodingResult
- process_
encode_ io_ result - Converts an IO encoding error (and logs when in error) into an EncodingResult
- read_
array - Reads an array of the encoded type from a stream, preserving distinction between null array and empty array
- read_
bytes - Reads an array of bytes from the stream
- read_
f32 - Read a 32-bit precision value from the stream
- read_
f64 - Read a 64-bit precision from the stream
- read_
i16 - Read an signed 16-bit value from the stream
- read_
i32 - Read a signed 32-bit value from the stream
- read_
i64 - Read a signed 64-bit value from the stream
- read_u8
- Read an unsigned byte from the stream
- read_
u16 - Read an unsigned 16-bit value from the stream
- read_
u32 - Read an unsigned 32-bit value from the stream
- read_
u64 - Read an unsigned 64-bit value from the stream
- write_
array - Write an array of the encoded type to stream, preserving distinction between null array and empty array
- write_
bytes - Writes a series of identical bytes to the stream
- write_
f32 - Writes a 32-bit precision value to the stream
- write_
f64 - Writes a 64-bit precision value to the stream
- write_
i16 - Writes a signed 16-bit value to the stream
- write_
i32 - Writes a signed 32-bit value to the stream
- write_
i64 - Writes a signed 64-bit value to the stream
- write_
u8 - Writes an unsigned byte to the stream
- write_
u16 - Writes an unsigned 16-bit value to the stream
- write_
u32 - Writes an unsigned 32-bit value to the stream
- write_
u64 - Writes an unsigned 64-bit value to the stream