NBitcoin.BouncyCastle.Asn1.DerOutputStream.WriteEncoded C# (CSharp) Method

WriteEncoded() public method

public WriteEncoded ( int tag, byte bytes ) : void
tag int
bytes byte
return void
		public void WriteEncoded(
			int tag,
			byte[] bytes)
		{
			WriteByte((byte)tag);
			WriteLength(bytes.Length);
			Write(bytes, 0, bytes.Length);
		}

Same methods

DerOutputStream::WriteEncoded ( int tag, byte first, byte bytes ) : void
DerOutputStream::WriteEncoded ( int tag, byte bytes, int offset, int length ) : void
DerOutputStream::WriteEncoded ( int flags, int tagNo, byte bytes ) : void

Usage Example

Example #1
0
		internal override void Encode(
			DerOutputStream derOut)
		{
			lock (this)
			{
				if (encoded == null)
				{
					base.Encode(derOut);
				}
				else
				{
					derOut.WriteEncoded(Asn1Tags.Set | Asn1Tags.Constructed, encoded);
				}
			}
		}
All Usage Examples Of NBitcoin.BouncyCastle.Asn1.DerOutputStream::WriteEncoded