Good afternoon,
So I was wondering how you read headers in
Java (assuming you know the spec for the header.)
Now in C I would have just read the number of bytes in the header into a buffer, and and changed the pointer reference to the chunk of memory to point to a strut that was a representation of the head.
Was quite a neat solution.
In java I cant do that, is there an alternative? Or is it just a case of reading x bytes, into the required data type and moving on to the next x bytes?
Just a random thought, thanks.
Gavin