Converting a ubyte[] to a struct with respect to endianness?

2017-06-23 Thread Felix via Digitalmars-d-learn
I'm trying to read in just the first part of a .png file to peek at it's width and height without loading in the whole file. I'm using FreeImage for reading the whole file but since it doesn't have a function to let me peek at the image size before loading it all in I'm rolling my own. I've g

Re: Converting a ubyte[] to a struct with respect to endianness?

2017-06-23 Thread Felix via Digitalmars-d-learn
That works, thanks!