public void Read(NDRParser parser) { uint subAuthorityCount = parser.ReadUInt32(); byte[] buffer = new byte[SID.FixedLength + subAuthorityCount * 4]; parser.ReadBytes(buffer); sid.Read(buffer, 0); }
public void Read(NDRParser parser) { uint subAuthorityCount = parser.ReadUInt32(); byte[] buffer = parser.ReadBytes((int)(SID.FixedLength + subAuthorityCount * 4)); var tempSid = new SID(buffer, 0); sid.Revision = tempSid.Revision; sid.IdentifierAuthority = tempSid.IdentifierAuthority; sid.SubAuthority = tempSid.SubAuthority; }