33 if (!
Buffer) {
throw std::invalid_argument(
"InputFromBuffer: Input buffer cannot be empty."); }
35 if (!bufSize) {
throw std::invalid_argument(
"InputFromBuffer: Invalid size of buffer"); }
45 const std::size_t sizeToRead = std::min(
Size, size);
46 memcpy(data,
Buffer, sizeToRead);
OPC UA Address space part. GNU LGPL.