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

◆ AppendData() [2/3]

void System.Security.Cryptography.IncrementalHash.AppendData ( byte[] data,
int offset,
int count )
inline

Definition at line 43 of file IncrementalHash.cs.

44 {
45 if (data == null)
46 {
47 throw new ArgumentNullException("data");
48 }
49 if (offset < 0)
50 {
51 throw new ArgumentOutOfRangeException("offset", System.SR.ArgumentOutOfRange_NeedNonNegNum);
52 }
53 if (count < 0 || count > data.Length)
54 {
55 throw new ArgumentOutOfRangeException("count");
56 }
57 if (data.Length - count < offset)
58 {
60 }
61 if (_disposed)
62 {
63 throw new ObjectDisposedException("IncrementalHash");
64 }
65 AppendData(new ReadOnlySpan<byte>(data, offset, count));
66 }
static string Argument_InvalidOffLen
Definition SR.cs:22
static string ArgumentOutOfRange_NeedNonNegNum
Definition SR.cs:32
Definition SR.cs:7

References System.Security.Cryptography.IncrementalHash._disposed, System.Security.Cryptography.IncrementalHash.AppendData(), System.SR.Argument_InvalidOffLen, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.count, and System.offset.