You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
639 B
26 lines
639 B
1 month ago
|
using System;
|
||
|
using System.IO;
|
||
|
|
||
|
namespace Org.BouncyCastle.Bcpg.OpenPgp
|
||
|
{
|
||
|
/// <remarks>
|
||
|
/// A PGP marker packet - in general these should be ignored other than where
|
||
|
/// the idea is to preserve the original input stream.
|
||
|
/// </remarks>
|
||
|
public class PgpMarker
|
||
|
: PgpObject
|
||
|
{
|
||
|
private readonly MarkerPacket data;
|
||
|
|
||
|
public PgpMarker(
|
||
|
BcpgInputStream bcpgInput)
|
||
|
{
|
||
|
Packet packet = bcpgInput.ReadPacket();
|
||
|
if (!(packet is MarkerPacket))
|
||
|
throw new IOException("unexpected packet in stream: " + packet);
|
||
|
|
||
|
this.data = (MarkerPacket)packet;
|
||
|
}
|
||
|
}
|
||
|
}
|