Reimplement the storage of the PointBuffer as a stack-allocated  std::vector<uint8_t> rather than a heap allocated object.