Skip to content

[FEATURE]: Decode from Slice<Data> #34

@aDifferentJT

Description

@aDifferentJT

Is your feature request related to a problem?

Sometimes you have a large buffer, part of which is a CBOR object, it would be nice to be able to decode without needing to copy the buffer first

Describe the solution you'd like.

An overload to CBORDecoder.decode and CodableCBORDecoder.decode that takes Slice<Data> rather than Data.

Describe alternatives you've considered.

You can convert Slice<Data> to Data using Data(slice), however the performance suffers.

Have you already worked out some solution or have a PoC?

No response

Additional Context

No response

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions