Ejemplo n.º 1
0
        private static ulong[] CreateRandomVarints64(Random random, int valueCount, int encodedSize)
        {
            var result = new ulong[valueCount];

            for (int i = 0; i < valueCount; i++)
            {
                result[i] = ParseRawPrimitivesBenchmark.RandomUnsignedVarint(random, encodedSize, false);
            }
            return(result);
        }
Ejemplo n.º 2
0
        private static uint[] CreateRandomVarints32(Random random, int valueCount, int encodedSize)
        {
            var result = new uint[valueCount];

            for (int i = 0; i < valueCount; i++)
            {
                result[i] = (uint)ParseRawPrimitivesBenchmark.RandomUnsignedVarint(random, encodedSize, true);
            }
            return(result);
        }