Skip to content

Improve the Serializer and MsgBuf #9

@rustybee42

Description

@rustybee42
  • Make the serializer work with a &mut [u8], so fixed size buffers of all kinds can be used. Required for RDMA support and anything else the does not use the default memory allocator to get a buffer. This has the drawback that the caller must ensure in advance that the serialized data fits into the provided buffer. In the C++ and C core code, it works the same, though, and message buffers are always a fixed 4MB big.
  • Add support to access and set the other header fields (e.g. msg_target_id, msg_user_id, ...)
  • Consider having MsgBuf not depend on a BytesMut or removing MsgBuf

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions