Org.BouncyCastle.Asn1.DerBmpString.DerBmpString C# (CSharp) Method

DerBmpString() public method

public DerBmpString ( byte str ) : System
str byte
return System
        public DerBmpString(
            byte[] str)
        {
			if (str == null)
				throw new ArgumentNullException("str");

            char[] cs = new char[str.Length / 2];

			for (int i = 0; i != cs.Length; i++)
            {
                cs[i] = (char)((str[2 * i] << 8) | (str[2 * i + 1] & 0xff));
            }

			this.str = new string(cs);
        }

Same methods

DerBmpString::DerBmpString ( string str ) : System