Increase user buffer in documents
This commit is contained in:
parent
f788702147
commit
544e26c147
@ -238,7 +238,7 @@ TEST(Document, AcceptWriter) {
|
|||||||
TEST(Document, UserBuffer) {
|
TEST(Document, UserBuffer) {
|
||||||
typedef GenericDocument<UTF8<>, MemoryPoolAllocator<>, MemoryPoolAllocator<> > DocumentType;
|
typedef GenericDocument<UTF8<>, MemoryPoolAllocator<>, MemoryPoolAllocator<> > DocumentType;
|
||||||
char valueBuffer[4096];
|
char valueBuffer[4096];
|
||||||
char parseBuffer[1024];
|
char parseBuffer[2048];
|
||||||
MemoryPoolAllocator<> valueAllocator(valueBuffer, sizeof(valueBuffer));
|
MemoryPoolAllocator<> valueAllocator(valueBuffer, sizeof(valueBuffer));
|
||||||
MemoryPoolAllocator<> parseAllocator(parseBuffer, sizeof(parseBuffer));
|
MemoryPoolAllocator<> parseAllocator(parseBuffer, sizeof(parseBuffer));
|
||||||
DocumentType doc(&valueAllocator, sizeof(parseBuffer), &parseAllocator);
|
DocumentType doc(&valueAllocator, sizeof(parseBuffer), &parseAllocator);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user