BonCodeAJP13.ServerPackets.BonCodeFilePathPacket.GetUserDataString C# (CSharp) Method

GetUserDataString() public method

Return string of user data enclosed in packet. This is different based on each packet type The Adobe specific packet is lacking a string terminator thus we only subtract three bytes
public GetUserDataString ( ) : string
return string
        public override string GetUserDataString()
        {
            //generically the first three bytes and the last byte are control bytes and we will not return them
            //byte[0]=type, byte[1,2] = string length,
            //last byte should be (0x00) = string terminator IS NOT USED BY Adobe
            if (p_ByteStore.Length > 3)
            {

                return System.Text.Encoding.UTF8.GetString(p_ByteStore, 3, p_ByteStore.Length - 3);
            }
            else
            {
                return "";
            }
        }