All pastes #244790 Raw Edit

Stuff

public text v1 · immutable
#244790 ·published 2006-11-10 05:01 UTC
rendered paste body
BinaryReader binReader = new BinaryReader( );

byte  [] byteArray  = binReader.ReadBytes( (int) binReader.BaseStream.Length );
float [] floatArray = new float[byteArray.Length];

for( int i = 0; i < binReader.BaseStream.Length; i += 4 )
    floatArray[i] = BitConverter.ToSingle( byteArray, i );