AK.F1.Timing.Server.IO.ByteBufferSnapshotTest.Create C# (CSharp) Method

Create() private static method

private static Create ( int bufferSize, int offset, int count ) : ByteBufferSnapshot
bufferSize int
offset int
count int
return ByteBufferSnapshot
        private static ByteBufferSnapshot Create(int bufferSize, int offset, int count)
        {
            var buffer = new byte[bufferSize];
            for(int i = 0; i < bufferSize; ++i)
            {
                buffer[i] = checked((byte)(i + 1));
            }
            return new ByteBufferSnapshot(buffer, offset, count);
        }