ArtemisComm.Utility.BytesToDebugString C# (CSharp) Méthode

BytesToDebugString() public static méthode

public static BytesToDebugString ( byte byteArray ) : string
byteArray byte
Résultat string
        public static string BytesToDebugString(byte[] byteArray)
        {
            return BytesToDebugString(byteArray, 0);
        }

Same methods

Utility::BytesToDebugString ( byte byteArray, int index ) : string

Usage Example

Exemple #1
0
        public byte[] GetBytes()
        {
            List <byte> retVal = new List <byte>();

            //retVal.AddRange(BitConverter.GetBytes((int)SubPacketType));
            retVal.Add((byte)SubPacketType);
            if (_log.IsInfoEnabled)
            {
                _log.InfoFormat("~~~~SubPacketType added to bytes: {0}", Utility.BytesToDebugString(retVal.ToArray()));
            }
            if (SubPacketData != null)
            {
                retVal.AddRange(SubPacketData);
                if (_log.IsInfoEnabled)
                {
                    _log.InfoFormat("~~~~####SubPacketData added to bytes: {0}", Utility.BytesToDebugString(retVal.ToArray()));
                }
            }
            return(retVal.ToArray());
        }
All Usage Examples Of ArtemisComm.Utility::BytesToDebugString