BinTreeNodeWriter.writeString C# (CSharp) Method

writeString() protected method

protected writeString ( string tag ) : void
tag string
return void
    protected void writeString(string tag)
    {
        if (this.tokenMap.ContainsKey(tag))
        {
            int value = this.tokenMap[tag];
            this.writeToken(value);
        }
        else
        {
            int index = tag.IndexOf('@');
            if (index != -1)
            {
                string server = tag.Substring(index + 1);
                string user = tag.Substring(0, index);
                this.writeJid(user, server);
            }
            else
            {
                this.writeBytes(tag);
            }
        }
    }