Home
last modified time | relevance | path

Searched refs:ReadOnlyByteArrayView (Results 1 – 14 of 14) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/utils/
Dbyte_array_view.h30 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/
Dformat_utils_test.cpp55 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/
Dshortcut_list_reading_utils.h31 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,
Dshortcut_list_reading_utils.cpp34 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/
Dbigram_list_read_write_utils.h34 static bool getBigramEntryPropertiesAndAdvancePosition(const ReadOnlyByteArrayView buffer,
47 static bool skipExistingBigrams(const ReadOnlyByteArrayView buffer, int *const bigramListPos);
64 static int getBigramAddressAndAdvancePosition(const ReadOnlyByteArrayView buffer,
Dbigram_list_read_write_utils.cpp42 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/
Dver2_pt_node_array_reader.h30 Ver2PtNodeArrayReader(const ReadOnlyByteArrayView buffer) : mBuffer(buffer) {}; in Ver2PtNodeArrayReader()
40 const ReadOnlyByteArrayView mBuffer;
Dver2_patricia_trie_node_reader.h34 Ver2ParticiaTrieNodeReader(const ReadOnlyByteArrayView buffer, in Ver2ParticiaTrieNodeReader()
46 const ReadOnlyByteArrayView mBuffer;
Dpatricia_trie_policy.h158 const ReadOnlyByteArrayView mBuffer;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/bigram/
Dbigram_list_policy.h31 BigramListPolicy(const ReadOnlyByteArrayView buffer) : mBuffer(buffer) {} in BigramListPolicy()
56 const ReadOnlyByteArrayView mBuffer;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/shortcut/
Dshortcut_list_policy.h31 explicit ShortcutListPolicy(const ReadOnlyByteArrayView buffer) : mBuffer(buffer) {} in ShortcutListPolicy()
70 const ReadOnlyByteArrayView mBuffer;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dformat_utils.h51 static FORMAT_VERSION detectFormatVersion(const ReadOnlyByteArrayView dictBuffer);
Dformat_utils.cpp47 const ReadOnlyByteArrayView dictBuffer) { in detectFormatVersion()
Dmmapped_buffer.h47 ReadOnlyByteArrayView getReadOnlyByteArrayView() const { in getReadOnlyByteArrayView()