Coder Social home page Coder Social logo

coderbf / uint128 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhuhaow/uint128

0.0 2.0 0.0 99 KB

A Swift 128-bit Unsigned Integer Data Type conforming to the UnsignedInteger Protocol

License: Apache License 2.0

Swift 95.45% Shell 3.13% Objective-C 1.42%

uint128's Introduction

UInt128

A Swift 128-bit Unsigned Integer Data Type conforming to the UnsignedInteger Protocol. This library also implements a number of other initializers and properties that Swift's native unsigned integer types support.

Usage

Since this library fully implements the UnsignedInteger protocol, you can use this data type just like any other native UInt data type. For numbers larger than UIntMax, you'll either want to call the init(upperBits: UInt64, lowerBits: UInt64) initializer, or, use the init(stringLiteral: String) initializer to create an instance with a string. The string can be in binary, octal, decimal or hexadecimal.

Example

let uInt128ByString: UInt128 = "0xffaabbcc00129823fa9a12d4aa87f498"
let uInt128ByInteger: UInt128 = 1234

Building

This project includes an example Xcode project for building the framework that also includes a playground that can be utilized for testing things out. This Xcode project can build from one target a iphone, iphonesimulator or mac os x build. It also includes unit testing and code coverage.

uint128's People

Contributors

jitsusama avatar

Watchers

James Cloos avatar corderBF avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.