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