Skip to content
Start free evaluation

pdcomm::opcua::bytes

Function

Borrows the bytes of a string as a ::pdcomm_opcua_bytes view.

inline pdcomm_opcua_bytes bytes(const std::string& v)

Declared in: #include <pdcomm/opcua/pdcomm_opcua.hpp>

Parameters

NameDescription
vSource text, usually UTF-8.

Returns

A view of v without a terminator; it is valid only while v is alive and unchanged. Never pass a temporary string.