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

◆ VerifyHeader()

static void System.Security.AccessControl.GenericAce.VerifyHeader ( byte[] binaryForm,
int offset )
inlinestaticpackageinherited

Definition at line 156 of file GenericAce.cs.

157 {
158 if (binaryForm == null)
159 {
160 throw new ArgumentNullException("binaryForm");
161 }
162 if (offset < 0)
163 {
164 throw new ArgumentOutOfRangeException("offset", System.SR.ArgumentOutOfRange_NeedNonNegNum);
165 }
166 if (binaryForm.Length - offset < 4)
167 {
168 throw new ArgumentOutOfRangeException("binaryForm", System.SR.ArgumentOutOfRange_ArrayTooSmall);
169 }
170 if ((binaryForm[offset + 3] << 8) + binaryForm[offset + 2] > binaryForm.Length - offset)
171 {
172 throw new ArgumentOutOfRangeException("binaryForm", System.SR.ArgumentOutOfRange_ArrayTooSmall);
173 }
174 }
static string ArgumentOutOfRange_ArrayTooSmall
Definition SR.cs:74
static string ArgumentOutOfRange_NeedNonNegNum
Definition SR.cs:32
Definition SR.cs:7

References System.SR.ArgumentOutOfRange_ArrayTooSmall, System.SR.ArgumentOutOfRange_NeedNonNegNum, and System.offset.

Referenced by System.Security.AccessControl.GenericAce.CreateFromBinaryForm(), System.Security.AccessControl.CommonAce.ParseBinaryForm(), System.Security.AccessControl.ObjectAce.ParseBinaryForm(), and System.Security.AccessControl.CompoundAce.ParseBinaryForm().