public static float CastUIntToFloat(uint value) { var helper = new ConverterHelperFloat(); helper.U32 = value; return(helper.F32); }
public static uint CastFloatToUInt(float value) { var helper = new ConverterHelperFloat(); helper.F32 = value; return(helper.U32); }
public static void GetBytes(byte[] bytes, int startIndex, float value) { ConverterHelperFloat ch = new ConverterHelperFloat { Afloat = value }; WriteLittleEndian(bytes, startIndex, ch.Aint); }
public static void Write(byte[] bytes, int startIndex, float value) { ConverterHelperFloat ch = new ConverterHelperFloat { Afloat = value }; Write(bytes, startIndex, ch.Aint); }
int FloatToIntBits(LFloat value) { ConverterHelperFloat ch = new ConverterHelperFloat { ALFloat = value }; return(ch.Aint); }
public static float ToSingle(byte[] buffer, int index) { int i = (int)ReadLittleEndian(buffer, index, sizeof(float)); ConverterHelperFloat ch = new ConverterHelperFloat { Aint = i }; return(ch.Afloat); }
public static float ToSingle(byte[] bytes, int startIndex) { var value = ReadInt32LittleEndian(bytes, startIndex); ConverterHelperFloat ch = new ConverterHelperFloat { Aint = value }; return(ch.Afloat); }
public static void GetBytes(byte[] bytes, int startIndex, float value) { ConverterHelperFloat converterHelperFloat = default(ConverterHelperFloat); converterHelperFloat.Afloat = value; ConverterHelperFloat ch = converterHelperFloat; WriteLittleEndian(bytes, startIndex, ch.Aint); }
public void Put(float value) { ConverterHelperFloat ch = new ConverterHelperFloat { i = value }; Put(ch.o); }
public static void GetBytes(byte[] bytes, int startIndex, float value) { ConverterHelperFloat ch = new ConverterHelperFloat { Afloat = value }; WriteLittleEndian(bytes, startIndex, ch.Aint); }