using System; using System.IO; namespace Org.BouncyCastle.Bcpg.OpenPgp { /// /// A PGP marker packet - in general these should be ignored other than where /// the idea is to preserve the original input stream. /// public class PgpMarker : PgpObject { private readonly MarkerPacket data; public PgpMarker(BcpgInputStream bcpgInput) { Packet packet = bcpgInput.ReadPacket(); if (!(packet is MarkerPacket markerPacket)) throw new IOException("unexpected packet in stream: " + packet); this.data = markerPacket; } } }