Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ VerifyGetBytes()

void System.Security.Cryptography.RandomNumberGenerator.VerifyGetBytes ( byte[] data,
int offset,
int count )
inlinepackageinherited

Definition at line 138 of file RandomNumberGenerator.cs.

139 {
140 if (data == null)
141 {
142 throw new ArgumentNullException("data");
143 }
144 if (offset < 0)
145 {
146 throw new ArgumentOutOfRangeException("offset", System.SR.ArgumentOutOfRange_NeedNonNegNum);
147 }
148 if (count < 0)
149 {
150 throw new ArgumentOutOfRangeException("count", System.SR.ArgumentOutOfRange_NeedNonNegNum);
151 }
152 if (count > data.Length - offset)
153 {
155 }
156 }
static string Argument_InvalidOffLen
Definition SR.cs:22
static string ArgumentOutOfRange_NeedNonNegNum
Definition SR.cs:32
Definition SR.cs:7

References System.SR.Argument_InvalidOffLen, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.count, and System.offset.

Referenced by System.Security.Cryptography.RandomNumberGenerator.GetBytes(), and System.Security.Cryptography.RandomNumberGeneratorImplementation.GetBytes().