Exemplo n.º 1
0
        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)));
        }
Exemplo n.º 2
0
 public float ReadFloatLE() => ByteBufferUtil.Int32BitsToSingle(this.ReadIntLE());
Exemplo n.º 3
0
 public float GetFloatLE(int index) => ByteBufferUtil.Int32BitsToSingle(this.GetIntLE(index));