Esempio n. 1
0
        public static unsafe Node ParseDocument(byte[] buffer, int index, int count, CMarkOptions options = default(CMarkOptions))
        {
            Ensure.InRange(buffer, nameof(buffer), index, nameof(index), count, nameof(count));

            fixed (byte* ptr = buffer) {
                return ParseDocument((IntPtr)ptr + index, count, options);
            }
        }
Esempio n. 2
0
		unsafe public void Feed(byte[] bytes, int index, int count)
		{
			Ensure.InRange(bytes, nameof(bytes), index, nameof(index), count, nameof(count));

			fixed (byte* ptr = bytes) {
				Feed((IntPtr)ptr + index, count);
			}
		}