Is there an equivalent in Objective C to C#'s BinaryReader and BinaryWriter? For example, a BinaryReader would take an NSData*
object (or a generalised stream), and would have methods such as -(uint32_t)readUnsignedInt
, -(double)readDouble
, etc. A BinaryWriter would be symmetrical, and would work with NSMutableData*
(or a generalised stream).
So I ended up writing a reader and writer for binary streams: https://github.com/vladimirg/objc-binary-stream-tools