Skip to content

dwaite/swift-cyborg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cyborg for Swift

Cyborg is meant to be a comprehensive library for CBOR, providing multiple levels for working with this binary format:

  • CyborgBrain, the lowest-level tools for working with binary data directly.
  • Cyborg, an object model designed to be more directly usable by developers, plus tools to convert to and from binary data. Use this if you are leveraging CBOR data directly.
  • CyborgCodable, support for encoding and decoding Swift objects into CBOR - either the object model or down to binary data.

There are two third-party runtime dependencies:

  • SwiftNIO, used solely for its ByteBuffer type to more easily allow for parsing and writing CBOR data
  • BigInt, used to support the range of integer values that CBOR supports outside the range of Swift.Int. The library can be built without BigInt, in which case these larger values will return an Error while deserializing/decoding. The hope is to eventually depend upon Swift Numerics once Arbitrary-precision Integers are added.

About

CBOR tooling for the Swift programming language

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages