Closed SunBlack closed 4 years ago
Since this comment from 2018, the library has gone through several rewrites and the Buffer
class is presently used to wrap a byte vector with information about stride, or with an assistant buffer that describes the number of variable length elements.
Currently I don't see any reasons why tinyply is using a Buffer class, which looks equal to a normal
std::vector
. SoBuffer buffer;
instruct PlyData
could be replaced bystd::vector<uint8_t> buffer;
orstd::unique_ptr<std::vector<uint8_t>> buffer;