Skip to content

Feature request: MinSize #180

@elpiel

Description

@elpiel

Apart from the MaxSize experimental feature I'd love to see a MinSize as well.
This can be useful if you want to have a "counter" buffer which keeps track of the maximum number of items that might be able to fit in a given buffer.

E.g. I have a buffer of 4 KiB and I'd like to know what's the maximum number of messages that can fit inside.
This buffer contains embedded_sdmmc::Blocks inside so it's not a continues buffer of bytes and I'm using a second buffer to keep track of how much each block is filled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    postcard-schemaRelated to the postcard-schema crate

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions