EmojiSearchIndex () { BuildData data = new BuildData(); data.myChars = new StringBuffer(2000000); data.myData = new int[4000000]; int first = collectToIndex(data); return new EmojiSearchIndex(data.myChars.toString(), Arrays.copyOf(data.myData, data.myDataPointer), first, data.myMaxEmojiId + 1); }