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
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.decodeandCodableCBORDecoder.decodethat takesSlice<Data>rather thanData.Describe alternatives you've considered.
You can convert
Slice<Data>toDatausingData(slice), however the performance suffers.Have you already worked out some solution or have a PoC?
No response
Additional Context
No response