public CertificateEntry Clone() { var copy = new CertificateEntry(); CopyTo(copy); return(copy); }
internal static CertificateEntry Load(IBinaryAccessor accessor) { var entry = new CertificateEntry(); int length = accessor.ReadInt32(); entry._revision = (CertificateRevision)accessor.ReadUInt16(); entry._type = (CertificateType)accessor.ReadUInt16(); // Subtract header length (length, revision, type). int dataLength = length - 8; entry._data = accessor.ReadBytes(dataLength); return(entry); }
protected void CopyTo(CertificateEntry copy) { copy._revision = _revision; copy._type = _type; copy._data = _data; }