public static float GetFloat(this IArrayBuffer <byte> buffer, int start, bool isLittleEndian) { Contract.Requires(buffer != null); buffer.CheckIndex(start, sizeof(float)); return(ByteBufferUtil.Int32BitsToSingle( buffer.GetInt32(start, BitConverter.IsLittleEndian == isLittleEndian))); }
public float ReadFloatLE() => ByteBufferUtil.Int32BitsToSingle(this.ReadIntLE());
public float GetFloatLE(int index) => ByteBufferUtil.Int32BitsToSingle(this.GetIntLE(index));