示例#1
0
        public void ShouldGetFloatFromNativeBuffer(IAtomicBuffer buffer)
        {
            var asInt = BitConverter.ToInt32(BitConverter.GetBytes(FloatValue), 0);

            Marshal.WriteInt32(buffer.BufferPointer, Index, asInt);

            Assert.That(buffer.GetFloat(Index), Is.EqualTo(FloatValue));
        }