Increase user buffer in documents

This commit is contained in:
Milo Yip 2015-05-11 10:33:29 +08:00
parent f788702147
commit 544e26c147

View File

@ -238,7 +238,7 @@ TEST(Document, AcceptWriter) {
TEST(Document, UserBuffer) {
typedef GenericDocument<UTF8<>, MemoryPoolAllocator<>, MemoryPoolAllocator<> > DocumentType;
char valueBuffer[4096];
char parseBuffer[1024];
char parseBuffer[2048];
MemoryPoolAllocator<> valueAllocator(valueBuffer, sizeof(valueBuffer));
MemoryPoolAllocator<> parseAllocator(parseBuffer, sizeof(parseBuffer));
DocumentType doc(&valueAllocator, sizeof(parseBuffer), &parseAllocator);