2
using System.Collections.Generic;
5
namespace OpenMcdfPerfTest
7
public static class Helpers
9
public static byte[] GetBuffer(int count)
11
Random r = new Random();
12
byte[] b = new byte[count];
17
public static byte[] GetBuffer(int count, byte c)
19
byte[] b = new byte[count];
20
for (int i = 0; i < b.Length; i++)
28
public static bool CompareBuffer(byte[] b, byte[] p)
30
if (b == null && p == null)
31
throw new Exception("Null buffers");
33
if (b == null && p != null)
36
if (b != null && p == null)
39
if (b.Length != p.Length)
42
for (int i = 0; i < b.Length; i++)