Esempio n. 1
0
        private void PushEventString(ExiLikeEvent exi, string newText, Dict dict)
        {
            PushEvent(exi);
            dict.AddWord(newText);
            var buffer = StrAsBytes(newText);

            PushInt(buffer.Length);
            PushByteArray(buffer);
        }
Esempio n. 2
0
 private void CreateOrUpdateItemWithText(string newText, ExiLikeEvent existingElement,
                                         ExiLikeEvent newElementEvent, Dict dict)
 {
     if (_dict.HasWord(newText))
     {
         PushEvent(existingElement);
         PushStringById(newText, dict);
     }
     else
     {
         PushEventString(newElementEvent, newText, dict);
     }
 }
Esempio n. 3
0
 private void PushEvent(ExiLikeEvent exi)
 {
     Result.Add((byte)(int)(exi));
 }