System.Xml.BinHexEncoder.Encode C# (CSharp) Méthode

Encode() static private méthode

static private Encode ( byte inArray, int offsetIn, int count ) : string
inArray byte
offsetIn int
count int
Résultat string
        internal static string Encode(byte[] inArray, int offsetIn, int count) {
            if (null == inArray) {
                throw new ArgumentNullException("inArray");
            }
            if (0 > offsetIn) {
                throw new ArgumentOutOfRangeException("offsetIn");
            }
            if (0 > count) {
                throw new ArgumentOutOfRangeException("count");
            }
            if (count > inArray.Length - offsetIn) {
                throw new ArgumentOutOfRangeException("count");
            }

            char[] outArray = new char[2 * count];
            int lenOut =  Encode(inArray, offsetIn, count, outArray);
            return new String(outArray, 0, lenOut);
        }

Same methods

BinHexEncoder::Encode ( byte inArray, int offsetIn, int count, char outArray ) : int
BinHexEncoder::Encode ( byte buffer, int index, int count, XmlWriter writer ) : void

Usage Example

Exemple #1
0
 internal static string ToBinHexString(byte[] inArray)
 {
     if (inArray == null)
     {
         throw new ArgumentNullException("inArray");
     }
     return(BinHexEncoder.Encode(inArray, 0, inArray.Length));
 }
All Usage Examples Of System.Xml.BinHexEncoder::Encode
BinHexEncoder