Ejemplo n.º 1
0
        /// <summary>
        /// Encode an Asn1OctetString directly into the specified outputstream.
        /// </summary>
        /// <param name="os">The Asn1OctetString object to encode</param>
        /// <param name="stream">The stream.</param>
        public void Encode(Asn1OctetString os, Stream stream)
        {
            Encode(os.GetIdentifier(), stream);
            EncodeLength(os.ByteValue().Length, stream);
            var tempSbyteArray = os.ByteValue();

            stream.Write(tempSbyteArray.ToByteArray(), 0, tempSbyteArray.Length);
        }