BinUtils for Swift
Nicolas Seriot reimplemented parts of the handy Python binascii and struct modules in Swift:
let d = pack("<h2I3sf", [1, 2, 3, "asd", 0.5]) assert(d == unhexlify("0100 02000000 03000000 617364 0000003f"))
Nicolas Seriot reimplemented parts of the handy Python binascii and struct modules in Swift:
let d = pack("<h2I3sf", [1, 2, 3, "asd", 0.5]) assert(d == unhexlify("0100 02000000 03000000 617364 0000003f"))