System.Security.Cryptography.RandomNumberGeneratorImplementation.GetBytesInternal C# (CSharp) Method

GetBytesInternal() private method

private GetBytesInternal ( byte data, int offset, int count ) : void
data byte
offset int
count int
return void
        private void GetBytesInternal(byte[] data, int offset, int count)
        {
            Debug.Assert(data != null);
            Debug.Assert(offset >= 0);
            Debug.Assert(count >= 0);
            Debug.Assert(count <= data.Length - offset);

            if (count > 0)
            {
                unsafe
                {
                    fixed (byte* pb = &data[offset])
                    {
                        GetBytes(pb, count);
                    }
                }
            }
        }
    }
RandomNumberGeneratorImplementation