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

WriteEncoded() private method

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

Same methods

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)
        {
            if (parsed)
            {
                base.Encode(derOut);
            }
            else
            {
                derOut.WriteEncoded(Asn1Tags.Set | Asn1Tags.Constructed, encoded);
            }
        }
All Usage Examples Of Org.BouncyCastle.Asn1.DerOutputStream::WriteEncoded