Skybound.Gecko.GeckoWebBrowser.ByteArrayInputStream.Read C# (CSharp) Method

Read() public method

public Read ( IntPtr aBuf, uint aCount ) : int
aBuf System.IntPtr
aCount uint
return int
            public int Read(IntPtr aBuf, uint aCount)
            {
                int count = (int)Math.Min(aCount, Available());

                if (count > 0)
                {
                    Marshal.Copy(Data, Position, aBuf, count);
                    Position += count;
                }

                return count;
            }