<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0" />

Org.BouncyCastle.Bcpg.BcpgOutputStream

public BcpgOutputStream(Stream outStr)

Create a stream representing a general packet.

public BcpgOutputStream(Stream outStr, bool newFormatOnly)

Base constructor specifying whether or not to use packets in the new format wherever possible.

public BcpgOutputStream(Stream outStr, PacketFormat packetFormat)

public BcpgOutputStream(Stream outStr, PacketTag tag)

Create a stream representing an old style partial object.

public BcpgOutputStream(Stream outStr, PacketTag tag, long length, bool oldFormat)

Create a stream representing a general packet.

public BcpgOutputStream(Stream outStr, PacketTag tag, long length)

Create a new style partial input stream buffered into chunks.

public BcpgOutputStream(Stream outStr, PacketTag tag, byte[] buffer)

Create a new style partial input stream buffered into chunks.

public void Finish()

Finish writing out the current packet without closing the underlying stream.

public void WriteObject(BcpgObject bcpgObject)

public void WriteObjects(BcpgObject[] v)