Skip to content

Ah, yes. It would have helped if I read the all the changes :-) #30896

@youngthuggayslxo-code

Description

@youngthuggayslxo-code

Ah, yes. It would have helped if I read the all the changes :-)

Instead of the match, you can also use NonZeroU8. And encode it as len + 1. (i.e., non_zero_len==1 represents an actual length of 0). Implication is you can't represent a length of 255. (Or more generally create a NonMaxU8 struct that uses NonZero internally ¯_(ツ)_/¯

Originally posted by @gregor-cf in cloudflare/quiche#2460 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions