private static void VerifyBytes(IntPtr p, int length) { for (int i = 0; i < length; i++) { Assert.Equal((byte)i, Marshal.ReadByte(p + i)); } }