What is the best way to convert from a part of a ubyte[] to a float?

I've tried converting the ubyte[] into a uint, but neither casting the uint to a float nor to!float work.

I suppose I could use a "trick record" union, but that seems inelegant. If I use pointers, the alignment may (unpredictably) not be proper (whatever that means these days).

Reply via email to