read(io, UInt32). Depending on the endianness of the data stream, you may or may not need to call ntoh on that.
On Wed, Apr 27, 2016 at 1:35 PM, Achu <[email protected]> wrote: > Hi > > I'm trying to read a data stream off a server for our motion capture > system. The protocol > <https://qualisys.github.io/Real-Time-Protocol-Documentation/>says that > the first four bytes represent the size of the whole packet and I can read > that using readbytes(). To convert four UInt8s into one UInt32, I'm > using > s=bytes2hex(a) #where a is a Vector UInt8, 4 > parse(UInt32,"0x"*s) > > Is there a better way to do this? > > Thanks! > Achu >
