Skip to content

Allow initializing a HarpMessage object with a fixed length #107

@glopesdev

Description

@glopesdev

Instead of #106, an alternative approach might be to allocate the payload buffer directly, and do the conversion by extracting a Span<byte> object representing the target memory locations to be used for writing data.

In this case we would directly allocate an empty payload with fixed length, and then use GetPayload to obtain an ArraySegment<byte> object which is implicitly convertible to Span<byte>.

The main difficulty here is how best to ensure Checksum is kept up to date.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew planned feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions