diff options
author | 2013-08-22 10:44:02 +0000 | |
---|---|---|
committer | 2013-08-22 10:44:03 +0000 | |
commit | 5f438d555c8553e4814abc6c0263c8c8f84a8220 (patch) | |
tree | da090d8ff55a542576f1e3f5f1b59ad140bc8f0b /native/jni/src/suggest/policyimpl/dictionary/utils/extendable_buffer.cpp | |
parent | 366c0c5198f43279f4671a196556124f41297c0c (diff) | |
parent | 941811cbd6ad34c65056fc685e0885ea374588cd (diff) | |
download | latinime-5f438d555c8553e4814abc6c0263c8c8f84a8220.tar.gz latinime-5f438d555c8553e4814abc6c0263c8c8f84a8220.tar.xz latinime-5f438d555c8553e4814abc6c0263c8c8f84a8220.zip |
Merge "Introduce ExtendableBuffer for dynamic update."
Diffstat (limited to 'native/jni/src/suggest/policyimpl/dictionary/utils/extendable_buffer.cpp')
-rw-r--r-- | native/jni/src/suggest/policyimpl/dictionary/utils/extendable_buffer.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/native/jni/src/suggest/policyimpl/dictionary/utils/extendable_buffer.cpp b/native/jni/src/suggest/policyimpl/dictionary/utils/extendable_buffer.cpp new file mode 100644 index 000000000..e55cc2410 --- /dev/null +++ b/native/jni/src/suggest/policyimpl/dictionary/utils/extendable_buffer.cpp @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2013 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "suggest/policyimpl/dictionary/utils/extendable_buffer.h" + +namespace latinime { + +const size_t ExtendableBuffer::INITIAL_BUFFER_SIZE = 16 * 1024; +const size_t ExtendableBuffer::MAX_BUFFER_SIZE = 1024 * 1024; +const size_t ExtendableBuffer::EXTEND_BUFFER_SIZE_STEP = 16 * 1024; + +} |