SwiftCBOR icon indicating copy to clipboard operation
SwiftCBOR copied to clipboard

A CBOR implementation for Swift

Results 17 SwiftCBOR issues
Sort by recently updated
recently updated
newest added

[Swift 5.6 introduced `CodingKeyRepresentable`](https://github.com/apple/swift-evolution/blob/main/proposals/0320-codingkeyrepresentable.md), a new protocol that allows dictionaries with keys that aren’t a plain `String` or `Int`.

enhancement

Could we add a guard check before we touch data array with start and end indexes? We should throw an error if `data` doesn't contain requested range. It causes fatal...

I am using CodableCBORDecoder but the cbor contains possibly a tagged cbor. Please use throw instead of fatalError. do .. catch cannot prevent crashing from fatalError

this adds the ability to order the keys of a map according to the CBOR RFC: https://tools.ietf.org/html/rfc7049#section-3.9 its now its own function, maybe its ok to replace the default implementation?...

Hello! Thanks for a great library! I noticed that the encoding of negative 64 bit integers are wrong. You need to subtract 1 to get the correct value. See the...

`UnsafeRawPointer` is depreciated: ``` note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope ``` and on iOS 16.1...

Apple required App Privacy manifests until 2025. Is there a plan to include the PrivacyInfo.xcprivacy manifest ? Ref: https://developer.apple.com/videos/play/wwdc2023/10060/ https://developer.apple.com/news/?id=av1nevon https://developer.apple.com/app-store/user-privacy-and-data-use/

[CBOR: CBOR] should be replaced with OrderedDictionary

I'm handling a cbor message that is tagged with a value that's not supported and so trying to decode the message throws this error: https://github.com/valpackett/SwiftCBOR/blob/edc01765cf6b3685bb622bb09242ef5964fb991b/Sources/Decoder/UnkeyedDecodingContainer.swift#L228 What's the easiest way for...

Fixes https://github.com/valpackett/SwiftCBOR/issues/98