AK.F1.Timing.Server.IO.ByteBufferTest.append_doubles_capacity_until_it_can_satisfy_the_buffer C# (CSharp) Метод

append_doubles_capacity_until_it_can_satisfy_the_buffer() приватный Метод

private append_doubles_capacity_until_it_can_satisfy_the_buffer ( ) : void
Результат void
        public void append_doubles_capacity_until_it_can_satisfy_the_buffer()
        {
            var buffer = new ByteBuffer(1);

            buffer.Append(new byte[1]);
            Assert.Equal(1, buffer.Capacity);

            buffer.Append(new byte[1]);
            Assert.Equal(2, buffer.Capacity);

            buffer.Append(new byte[10]);
            Assert.Equal(16, buffer.Capacity);
        }