BinUtils
BinUtils copied to clipboard
Swift functions to ease working with binary formats
## Changes Included: - **Project Structure**: The path for `BinUtils` within the Xcode project has been updated to reflect a new directory structure. The source file `BinUtils.swift` has been moved...
"the manifest is missing a Swift tools version specification; consider prepending to the manifest '// swift-tools-version:5.5.0' to specify the current Swift toolchain version as the lowest Swift version supported by...
``` let foo : UInt16 = 0 let d = pack(">H", [ foo ]) print(d) ``` gives at ``` case "H": bytes = UInt16(truncatingBitPattern:o as! Int).data.bytes ``` ``` Could not...
if the data's byteorder is BigEndian we should also reverse the bytes cause some integer type have multiple byte