SharpCifs.Netbios.Name.ReadWireFormatDos C# (CSharp) Méthode

ReadWireFormatDos() private méthode

private ReadWireFormatDos ( byte src, int srcIndex ) : int
src byte
srcIndex int
Résultat int
        internal int ReadWireFormatDos(byte[] src, int srcIndex)
        {

            int length = 15;
            byte[] tmp = new byte[length];

            Array.Copy(src, srcIndex, tmp, 0, length);

            try
            {
                name = Runtime.GetStringForBytes(tmp, 0, length).Trim();
            }
            catch (Exception ex)
            {

            }

            HexCode = src[srcIndex + length];

            return length + 1;
        }