This is a simple example sketch showing how to use the serial allocator.
#include <Arduino.h>
const uint32_t poolSize = 1024l * 32l;
void setup()
{
while (!Serial)
;
valloc.start();
}
void loop()
{
*vpi = 42;
Serial.print("*vpi = "); Serial.println(*vpi);
valloc.free(vpi);
delay(1000);
}