encode() публичный абстрактный Метод

Abstract method that must be implemented by each child class to encode itself ( an Asn1Object) directly intto a output stream.
public abstract encode ( Asn1Encoder enc, System out_Renamed ) : void
enc Asn1Encoder
out_Renamed System
Результат void
Пример #1
0
        /* Asn1Object implementation
         */


        /// <summary> Call this method to encode the contents of this Asn1Choice
        /// instance into the specified output stream using the
        /// specified encoder object.
        ///
        /// </summary>
        /// <param name="enc">Encoder object to use when encoding self.
        ///
        /// </param>
        /// <param name="out">The output stream onto which the encoded byte
        /// stream is written.
        /// </param>
        public override void  encode(Asn1Encoder enc, System.IO.Stream out_Renamed)
        {
            content.encode(enc, out_Renamed);
            return;
        }
Пример #2
0
        /* Asn1Object implementation
         */


        /// <summary>
        ///     Call this method to encode the contents of this Asn1Choice
        ///     instance into the specified output stream using the
        ///     specified encoder object.
        /// </summary>
        /// <param name="enc">
        ///     Encoder object to use when encoding self.
        /// </param>
        /// <param name="out">
        ///     The output stream onto which the encoded byte
        ///     stream is written.
        /// </param>
        public override void encode(Asn1Encoder enc, Stream out_Renamed)
        {
            content.encode(enc, out_Renamed);
        }