Exemple #1
0
            //------------------PRIVATE METHODS------------------
            private string extractString(int startByte, int nameLength)
            {
                int endIndex = Const.FindIndexOfValueInByteArray(
                    0, data, startByte, nameLength);

                if (endIndex == -1)   //index not found case
                {
                    Console.WriteLine("value not found at ArtPollReply.ShortName {get}");
                    endIndex = 0;
                }
                return(Const.GetASCIIFromByteArray(data, startByte, endIndex));
            }