JsonBuffer.cpp 478 B

1234567891011121314151617181920212223242526
  1. #include "JsonBuffer.h"
  2. #include <new>
  3. #include <string.h> // for memset
  4. #include "JsonObject.h"
  5. #include "JsonValue.h"
  6. #include "Internals/JsonNode.h"
  7. JsonValue JsonBuffer::createValue()
  8. {
  9. return JsonValue(createNode());
  10. }
  11. JsonNode* JsonBuffer::createNode()
  12. {
  13. void* node = allocateNode();
  14. if (!node) return 0;
  15. return new (node) JsonNode();
  16. }
  17. JsonArray JsonBuffer::parseArray(char const *string)
  18. {
  19. return JsonArray();
  20. }