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

◆ VerifyHeader()

static void System.Security.AccessControl.RawAcl.VerifyHeader ( byte[] binaryForm,
int offset,
out byte revision,
out int count,
out int length )
inlinestaticprivate

Definition at line 55 of file RawAcl.cs.

56 {
57 if (binaryForm == null)
58 {
59 throw new ArgumentNullException("binaryForm");
60 }
61 if (offset < 0)
62 {
63 throw new ArgumentOutOfRangeException("offset", System.SR.ArgumentOutOfRange_NeedNonNegNum);
64 }
65 if (binaryForm.Length - offset >= 8)
66 {
68 length = binaryForm[offset + 2] + (binaryForm[offset + 3] << 8);
69 count = binaryForm[offset + 4] + (binaryForm[offset + 5] << 8);
70 if (length <= binaryForm.Length - offset)
71 {
72 return;
73 }
74 }
75 throw new ArgumentOutOfRangeException("binaryForm", System.SR.ArgumentOutOfRange_ArrayTooSmall);
76 }
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, System.count, System.length, and System.offset.

Referenced by System.Security.AccessControl.RawAcl.SetBinaryForm().