Exemplo n.º 1
0
        public void ShouldGetDoubleFromNativeBuffer(IAtomicBuffer buffer)
        {
            var asLong = BitConverter.ToInt64(BitConverter.GetBytes(DoubleValue), 0);

            Marshal.WriteInt64(buffer.BufferPointer, Index, asLong);

            Assert.That(buffer.GetDouble(Index), Is.EqualTo(DoubleValue));
        }