Searched refs:ReadOnlyByteArrayView (Results 1 – 14 of 14) sorted by relevance
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
D | byte_array_view.h | 30 class ReadOnlyByteArrayView { 32 ReadOnlyByteArrayView() : mPtr(nullptr), mSize(0) {} in ReadOnlyByteArrayView() function 34 ReadOnlyByteArrayView(const uint8_t *const ptr, const size_t size) in ReadOnlyByteArrayView() function 45 AK_FORCE_INLINE const ReadOnlyByteArrayView skip(const size_t n) const { in skip() 47 return ReadOnlyByteArrayView(); in skip() 49 return ReadOnlyByteArrayView(mPtr + n, mSize - n); in skip() 53 DISALLOW_ASSIGNMENT_OPERATOR(ReadOnlyByteArrayView); 77 AK_FORCE_INLINE ReadOnlyByteArrayView getReadOnlyView() const { in getReadOnlyView() 78 return ReadOnlyByteArrayView(mPtr, mSize); in getReadOnlyView()
|
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/ |
D | format_utils_test.cpp | 55 FormatUtils::detectFormatVersion(ReadOnlyByteArrayView())); in TEST() 61 ReadOnlyByteArrayView(buffer.data(), buffer.size()))); in TEST() 67 ReadOnlyByteArrayView(buffer.data(), buffer.size()))); in TEST() 73 ReadOnlyByteArrayView(buffer.data(), buffer.size()))); in TEST() 80 ReadOnlyByteArrayView(buffer.data(), buffer.size()))); in TEST() 86 ReadOnlyByteArrayView(buffer.data(), buffer.size()))); in TEST() 92 ReadOnlyByteArrayView(buffer.data(), buffer.size() - 1))); in TEST()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/shortcut/ |
D | shortcut_list_reading_utils.h | 31 static ShortcutFlags getFlagsAndForwardPointer(const ReadOnlyByteArrayView buffer, 44 static int getShortcutListSizeAndForwardPointer(const ReadOnlyByteArrayView buffer, 51 static AK_FORCE_INLINE void skipShortcuts(const ReadOnlyByteArrayView buffer, int *const pos) { in skipShortcuts() 60 static int readShortcutTarget(const ReadOnlyByteArrayView buffer, const int maxLength,
|
D | shortcut_list_reading_utils.cpp | 34 ShortcutListReadingUtils::getFlagsAndForwardPointer(const ReadOnlyByteArrayView buffer, in getFlagsAndForwardPointer() 40 const ReadOnlyByteArrayView buffer, int *const pos) { in getShortcutListSizeAndForwardPointer() 46 /* static */ int ShortcutListReadingUtils::readShortcutTarget(const ReadOnlyByteArrayView buffer, in readShortcutTarget()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/bigram/ |
D | bigram_list_read_write_utils.h | 34 static bool getBigramEntryPropertiesAndAdvancePosition(const ReadOnlyByteArrayView buffer, 47 static bool skipExistingBigrams(const ReadOnlyByteArrayView buffer, int *const bigramListPos); 64 static int getBigramAddressAndAdvancePosition(const ReadOnlyByteArrayView buffer,
|
D | bigram_list_read_write_utils.cpp | 42 const ReadOnlyByteArrayView buffer, BigramFlags *const outBigramFlags, in getBigramEntryPropertiesAndAdvancePosition() 61 /* static */ bool BigramListReadWriteUtils::skipExistingBigrams(const ReadOnlyByteArrayView buffer, in skipExistingBigrams() 74 const ReadOnlyByteArrayView buffer, const BigramFlags flags, int *const pos) { in getBigramAddressAndAdvancePosition()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/ |
D | ver2_pt_node_array_reader.h | 30 Ver2PtNodeArrayReader(const ReadOnlyByteArrayView buffer) : mBuffer(buffer) {}; in Ver2PtNodeArrayReader() 40 const ReadOnlyByteArrayView mBuffer;
|
D | ver2_patricia_trie_node_reader.h | 34 Ver2ParticiaTrieNodeReader(const ReadOnlyByteArrayView buffer, in Ver2ParticiaTrieNodeReader() 46 const ReadOnlyByteArrayView mBuffer;
|
D | patricia_trie_policy.h | 158 const ReadOnlyByteArrayView mBuffer;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/bigram/ |
D | bigram_list_policy.h | 31 BigramListPolicy(const ReadOnlyByteArrayView buffer) : mBuffer(buffer) {} in BigramListPolicy() 56 const ReadOnlyByteArrayView mBuffer;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/shortcut/ |
D | shortcut_list_policy.h | 31 explicit ShortcutListPolicy(const ReadOnlyByteArrayView buffer) : mBuffer(buffer) {} in ShortcutListPolicy() 70 const ReadOnlyByteArrayView mBuffer;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | format_utils.h | 51 static FORMAT_VERSION detectFormatVersion(const ReadOnlyByteArrayView dictBuffer);
|
D | format_utils.cpp | 47 const ReadOnlyByteArrayView dictBuffer) { in detectFormatVersion()
|
D | mmapped_buffer.h | 47 ReadOnlyByteArrayView getReadOnlyByteArrayView() const { in getReadOnlyByteArrayView()
|