private void PushEventString(ExiLikeEvent exi, string newText, Dict dict) { PushEvent(exi); dict.AddWord(newText); var buffer = StrAsBytes(newText); PushInt(buffer.Length); PushByteArray(buffer); }
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); } }
private void PushEvent(ExiLikeEvent exi) { Result.Add((byte)(int)(exi)); }