![]() |
Kinetis Bootloader Host
2.0.0
Host Tools for Kinetis devices
|
Experimental: do not use. Allocator to customize Value internal array. Below is an example of a simple implementation (actual implementation use memory pool). More...
#include <json.h>
Public Member Functions | |
| virtual ValueInternalArray * | newArray ()=0 |
| virtual ValueInternalArray * | newArrayCopy (const ValueInternalArray &other)=0 |
| virtual void | destructArray (ValueInternalArray *array)=0 |
| virtual void | reallocateArrayPageIndex (Value **&indexes, ValueInternalArray::PageIndex &indexCount, ValueInternalArray::PageIndex minNewIndexCount)=0 |
| Reallocate array page index. Reallocates an array of pointer on each page. More... | |
| virtual void | releaseArrayPageIndex (Value **indexes, ValueInternalArray::PageIndex indexCount)=0 |
| virtual Value * | allocateArrayPage ()=0 |
| virtual void | releaseArrayPage (Value *value)=0 |
Experimental: do not use. Allocator to customize Value internal array. Below is an example of a simple implementation (actual implementation use memory pool).
|
pure virtual |
Reallocate array page index. Reallocates an array of pointer on each page.
| indexes | [input] pointer on the current index. May be NULL. [output] pointer on the new index of at least minNewIndexCount pages. |
| indexCount | [input] current number of pages in the index. [output] number of page the reallocated index can handle. MUST be >= minNewIndexCount. |
| minNewIndexCount | Minimum number of page the new index must be able to handle. |