Home
last modified time | relevance | path

Searched refs:allocator (Results 1 – 22 of 22) sorted by relevance

/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dvaluetest.cpp77 Value::AllocatorType allocator; in TEST() local
80 x.Reserve(4u, allocator); in TEST()
81 x.PushBack(1, allocator).PushBack(2, allocator).PushBack(3, allocator).PushBack(4, allocator); in TEST()
160 Value::AllocatorType allocator; in TEST() local
162 x.AddMember("hello", "world", allocator) in TEST()
163 .AddMember("t", Value(true).Move(), allocator) in TEST()
164 .AddMember("f", Value(false).Move(), allocator) in TEST()
165 .AddMember("n", Value(kNullType).Move(), allocator) in TEST()
166 .AddMember("i", 123, allocator) in TEST()
167 .AddMember("pi", 3.14, allocator) in TEST()
[all …]
Ddocumenttest.cpp355 Allocator allocator; in TYPED_TEST() local
357 Document a(&allocator); in TYPED_TEST()
362 EXPECT_EQ(&a.GetAllocator(), &allocator); in TYPED_TEST()
370 EXPECT_EQ(&b.GetAllocator(), &allocator); in TYPED_TEST()
383 EXPECT_EQ(&c.GetAllocator(), &allocator); in TYPED_TEST()
448 Allocator allocator; in TYPED_TEST() local
450 Document a(&allocator); in TYPED_TEST()
455 EXPECT_EQ(&a.GetAllocator(), &allocator); in TYPED_TEST()
464 EXPECT_EQ(&b.GetAllocator(), &allocator); in TYPED_TEST()
478 EXPECT_EQ(&c.GetAllocator(), &allocator); in TYPED_TEST()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Ddocument.h490 GenericValue(const GenericValue<Encoding, SourceAllocator>& rhs, Allocator & allocator);
558 …st Ch* s, SizeType length, Allocator& allocator) : data_(), flags_() { SetStringRaw(StringRef(s, l…
561 …GenericValue(const Ch*s, Allocator& allocator) : data_(), flags_() { SetStringRaw(StringRef(s), al…
567 …onst std::basic_string<Ch>& s, Allocator& allocator) : data_(), flags_() { SetStringRaw(StringRef(…
656 … GenericValue& CopyFrom(const GenericValue<Encoding, SourceAllocator>& rhs, Allocator& allocator) {
659 new (this) GenericValue(rhs, allocator);
993 GenericValue& AddMember(GenericValue& name, GenericValue& value, Allocator& allocator) {
1001 … o.members = reinterpret_cast<Member*>(allocator.Malloc(o.capacity * sizeof(Member)));
1006 …o.members = reinterpret_cast<Member*>(allocator.Realloc(o.members, oldCapacity * sizeof(Member), o…
1024 GenericValue& AddMember(GenericValue& name, StringRefType value, Allocator& allocator) {
[all …]
Dpointer.h106 …explicit GenericPointer(const Ch* source, Allocator* allocator = 0) : allocator_(allocator), ownAl… in allocator_() argument
117 …icPointer(const std::basic_string<Ch>& source, Allocator* allocator = 0) : allocator_(allocator), … in allocator_() argument
129 …enericPointer(const Ch* source, size_t length, Allocator* allocator = 0) : allocator_(allocator), … in allocator_() argument
201 GenericPointer Append(const Token& token, Allocator* allocator = 0) const {
203 r.allocator_ = allocator;
219 GenericPointer Append(const Ch* name, SizeType length, Allocator* allocator = 0) const {
221 return Append(token, allocator);
232 Append(T* name, Allocator* allocator = 0) const {
233 return Append(name, StrLen(name), allocator);
243 GenericPointer Append(const std::basic_string<Ch>& name, Allocator* allocator = 0) const {
[all …]
Dmemorybuffer.h40 …GenericMemoryBuffer(Allocator* allocator = 0, size_t capacity = kDefaultCapacity) : stack_(allocat… in stack_()
Dstringbuffer.h39 …GenericStringBuffer(Allocator* allocator = 0, size_t capacity = kDefaultCapacity) : stack_(allocat… in stack_() argument
Dprettywriter.h45 …PrettyWriter(OutputStream& os, StackAllocator* allocator = 0, size_t levelDepth = Base::kDefaultLe…
46 Base(os, allocator, levelDepth), indentChar_(' '), indentCharCount_(4) {} in Base() argument
Dwriter.h68 Writer(StackAllocator* allocator = 0, size_t levelDepth = kDefaultLevelDepth) :
69 os_(0), level_stack_(allocator, levelDepth * sizeof(Level)), hasRoot_(false) {}
/packages/apps/Test/connectivity/sl4n/rapidjson/example/tutorial/
Dtutorial.cpp103 Document::AllocatorType& allocator = document.GetAllocator(); in main() local
105 …a.PushBack(i, allocator); // May look a bit strange, allocator is needed for potentially realloc… in main()
108 a.PushBack("Lua", allocator).PushBack("Mio", allocator); in main()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dtutorial.md337 Document::AllocatorType& allocator = document.GetAllocator();
338 // a.PushBack(Value(42), allocator); // will not compile
339 a.PushBack(Value().SetInt(42), allocator); // fluent API
340 a.PushBack(Value(42).Move(), allocator); // same as above
351 …o pass an instance of allocator, whenever an operation may require allocation. This design is need…
353 Therefore, when we assign a copy-string, we call this overloaded `SetString()` with allocator:
365 …, we get the allocator from a `Document` instance. This is a common idiom when using RapidJSON. Bu…
369 …e life-cycle can use const-string version of `SetString()`, which lacks allocator parameter. For …
402 ….)` and `PushBack(...)` may allocate memory for the array elements, therefore require an allocator.
408 Document::AllocatorType& allocator = document.GetAllocator();
[all …]
Ddom.md61 The `Allocator` defines which allocator class is used when allocating/deallocating memory for `Docu…
63 The default allocator used in `GenericDocument` is `MemoryPoolAllocator`. This allocator actually a…
65allocator is `CrtAllocator`, of which CRT is short for C RunTime library. This allocator simply ca…
260 …ser buffer is used up, it will allocate a chunk of memory from the base allocator (by default the …
262 …is an example of using stack memory. The first allocator is for storing values, while the second a…
Dpointer.md149 …or()` for creating values. And the second group needs user to supply an allocator, like the functi…
151 All examples above do not require an allocator parameter, because the parameter is a `Document&`. B…
158 // CreateValueByPointer() here no need allocator
166 // SetValueByPointer() here need allocator
178 `Erase()` or `EraseValueByPointer()` does not need allocator. And they return `true` if the value i…
Dfeatures.md86 * Support fast default allocator.
87 …* A stack-based allocator (allocate sequentially, prohibit to free individual allocations, suitabl…
89 * Support standard CRT(C-runtime) allocator.
Dfaq.md143 … value life-cycle as well as consistent memory managent using the right allocator during the value…
145 … that is to modify the `address` definition above to initialize it with allocator of the `person` …
173 …There are two APIs: constructor with allocator, and `CopyFrom()`. See [Deep Copy Value](doc/tutori…
181 4. Why do I need to provide allocator parameter in many DOM manipulation API?
183 …Since the APIs are member functions of `Value`, we do not want to save an allocator pointer in eve…
267 …/64-bit architecture respectively. RapidJSON also uses a special memory allocator to minimize over…
Dstream.md53 …rs (256 bytes for UTF8, 512 bytes for UTF16, etc.). User can provide an allocator and a initial ca…
56 StringBuffer buffer1(0, 1024); // Use its allocator, initial size = 1024
57 StringBuffer buffer2(allocator, 1024);
60 By default, `StringBuffer` will instantiate an internal allocator.
Dinternals.md134 static const bool kNeedFree; //!< Whether this allocator needs to call Free().
143 …// \param originalSize The current size in bytes. (Design issue: since some allocator may not book…
157 `MemoryPoolAllocator` is the default allocator for DOM. It allocate but do not free memory. This is…
159 Internally, it allocates chunks of memory from the base allocator (by default `CrtAllocator`) and s…
Dsax.md159 The third template parameter `Allocator` is the allocator type for internal data structure (actuall…
249 Writer(OutputStream& os, Allocator* allocator = 0, size_t levelDepth = kDefaultLevelDepth)
262 The last one, `Allocator` is the type of allocator, which is used for allocating internal data stru…
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Dstack.h35 …Stack(Allocator* allocator, size_t stackCapacity) : allocator_(allocator), ownAllocator_(0), stack… in Stack() argument
/packages/apps/Test/connectivity/sl4n/rapidjson/
DCHANGELOG.md20 * Change Document::ParseStream() to use stack allocator for Reader (ffbe38614732af8e0b3abdc8b50071f…
Dreadme.md40 …-bit machines (excluding text string). By default it uses a fast memory allocator, and the parser …
/packages/apps/TV/usbtuner/libs/
Dexoplayer_1.5.6.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/packages/inputmethods/LatinIME/dictionaries/
Den_US_wordlist.combined.gz