public static StrEncodingInfo GetEncoding(StrEncodingType t) { foreach(StrEncodingInfo sei in StrUtil.Encodings) { if(sei.Type == t) return sei; } return null; }
public StrEncodingInfo(StrEncodingType t, string strName, Encoding enc, uint cbCodePoint, byte[] vStartSig) { if(strName == null) throw new ArgumentNullException("strName"); if(enc == null) throw new ArgumentNullException("enc"); if(cbCodePoint <= 0) throw new ArgumentOutOfRangeException("cbCodePoint"); m_type = t; m_strName = strName; m_enc = enc; m_cbCodePoint = cbCodePoint; m_vSig = vStartSig; }