Kaspersky Neuromorphic Platform
1.0.0
API Reference
|
Message envelope routines. More...
#include <knp/core/uid.h>
#include <iostream>
#include <variant>
#include <vector>
#include "messaging.h"
Go to the source code of this file.
Namespaces | |
namespace | knp |
General framework namespace. | |
namespace | knp::core |
Core library namespace. | |
namespace | knp::core::messaging |
Messaging namespace. | |
Typedefs | |
using | knp::core::messaging::MessageVariant = boost::mp11::mp_rename<AllMessages, std::variant> |
Message variant that contains any message type specified in AllMessages . | |
Functions | |
std::vector< uint8_t > | knp::core::messaging::pack_to_envelope (const MessageVariant &message) |
Pack messages to envelope. | |
MessageVariant | knp::core::messaging::extract_from_envelope (const void *buffer) |
Extract messages from envelope. | |
MessageVariant | knp::core::messaging::extract_from_envelope (const std::vector< uint8_t > &buffer) |
Extract messages from envelope. | |
Message envelope routines.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file message_envelope.h.