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

◆ MarshalHeader()

void System.Security.AccessControl.RawAcl.MarshalHeader ( byte[] binaryForm,
int offset )
inlineprivate

Definition at line 78 of file RawAcl.cs.

79 {
80 if (binaryForm == null)
81 {
82 throw new ArgumentNullException("binaryForm");
83 }
84 if (offset < 0)
85 {
86 throw new ArgumentOutOfRangeException("offset", System.SR.ArgumentOutOfRange_NeedNonNegNum);
87 }
88 if (BinaryLength > GenericAcl.MaxBinaryLength)
89 {
91 }
92 if (binaryForm.Length - offset < BinaryLength)
93 {
94 throw new ArgumentOutOfRangeException("binaryForm", System.SR.ArgumentOutOfRange_ArrayTooSmall);
95 }
97 binaryForm[offset + 1] = 0;
98 binaryForm[offset + 2] = (byte)BinaryLength;
99 binaryForm[offset + 3] = (byte)(BinaryLength >> 8);
100 binaryForm[offset + 4] = (byte)Count;
101 binaryForm[offset + 5] = (byte)(Count >> 8);
102 binaryForm[offset + 6] = 0;
103 binaryForm[offset + 7] = 0;
104 }
static string ArgumentOutOfRange_ArrayTooSmall
Definition SR.cs:74
static string ArgumentOutOfRange_NeedNonNegNum
Definition SR.cs:32
static string AccessControl_AclTooLong
Definition SR.cs:14
Definition SR.cs:7

References System.SR.AccessControl_AclTooLong, System.SR.ArgumentOutOfRange_ArrayTooSmall, System.SR.ArgumentOutOfRange_NeedNonNegNum, System.Security.AccessControl.RawAcl.BinaryLength, System.Security.AccessControl.RawAcl.Count, System.Security.AccessControl.GenericAcl.MaxBinaryLength, System.offset, and System.Security.AccessControl.RawAcl.Revision.

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