Wednesday, October 12, 2016 [Tweets] [Favorites]

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"))

Comments

Stay up-to-date by subscribing to the Comments RSS Feed for this post.

Leave a Comment