-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
featureNew planned featureNew planned feature
Description
It is currently not possible to specify a conversion from an existing struct to a Harp message object without allocating an intermediate payload buffer. The following overloads would remove this need by directly working with Span<byte> objects, which can be created from any value type.
Proposed overloads:
HarpMessage FromPayload(int address, MessageType messageType, PayloadType payloadType, Span<byte> payload)
HarpMessage FromPayload(int address, int port, MessageType messageType, PayloadType payloadType, Span<byte> payload)
HarpMessage FromPayload(int address, double timestamp, MessageType messageType, PayloadType payloadType, Span<byte> payload)
HarpMessage FromPayload(int address, int port, double timestamp, MessageType messageType, PayloadType payloadType, Span<byte> payload)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew planned featureNew planned feature