mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-09-01 22:59:37 +00:00
Made messages mutable to prevent copy
This commit is contained in:
@ -42,8 +42,7 @@ struct Message : binary {
|
||||
std::shared_ptr<Reliability> reliability;
|
||||
};
|
||||
|
||||
using message_ptr = std::shared_ptr<const Message>;
|
||||
using mutable_message_ptr = std::shared_ptr<Message>;
|
||||
using message_ptr = std::shared_ptr<Message>;
|
||||
using message_callback = std::function<void(message_ptr message)>;
|
||||
|
||||
constexpr auto message_size_func = [](const message_ptr &m) -> size_t {
|
||||
|
Reference in New Issue
Block a user