init commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using System.IO;
|
||||
|
||||
namespace Org.BouncyCastle.Bcpg;
|
||||
|
||||
public abstract class ContainedPacket : Packet
|
||||
{
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
MemoryStream memoryStream = new MemoryStream();
|
||||
BcpgOutputStream bcpgOutputStream = new BcpgOutputStream(memoryStream);
|
||||
bcpgOutputStream.WritePacket(this);
|
||||
return memoryStream.ToArray();
|
||||
}
|
||||
|
||||
public abstract void Encode(BcpgOutputStream bcpgOut);
|
||||
}
|
||||
Reference in New Issue
Block a user