Swiftpack.co - TheAngryDarling/SwiftCustomInts as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by TheAngryDarling.
TheAngryDarling/SwiftCustomInts 2.0.0
Provides a set of custom size Ints. Primarily designed for memory management when reading/writing/storing lots of ints of custom byte sizes
⭐️ 0
🕓 3 years ago
.package(url: "https://github.com/TheAngryDarling/SwiftCustomInts.git", from: "2.0.0")

Custom Integers

macOS Linux Apache 2

Note: Versions <= 1.0.2 unfortunately does not actually work out side of the Mac Ecosystem

This kit adds additional integers with custom sizes. They are as follows: 24 bit ints: Int24, UInt24 40 bit ints: Int40, UInt40 48 bit ints: Int48, UInt48 56 bit ints: Int56, UInt56

Reasoning behind these custom types are when you need to read file formats that require one or more of these int sizes

Requirements

  • Xcode 9.0.1+ (If working within Xcode)
  • Swift 4.0+

Note: This package used Dynamic Swift to generate some, or all, of its source code. While the generated source code should be included and available in this package so building directly with swift is possible, if missing, you may need to download and build with Dynamic Swift

Usage

You can use thes custom integer types like you would any other integer type

Dependencies

  • Custom Coders - Provides the base for creating custom coders as well as a few complete coders like PListEncoder and PListDecoder which are cross platform Property List Coders. (Used only when testing)

Author

License

This project is licensed under Apache License v2.0 - see the LICENSE.md file for details

Acknowledgments

Swift Specifically the section on integers

GitHub

link
Stars: 0
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics