MMBuffer constructor
MMBuffer(
- int length
Create a memory buffer with size of length
.
Implementation
MMBuffer(int length) {
_length = length;
if (length > 0) {
_ptr = malloc<Uint8>(length);
} else {
_ptr = nullptr;
}
}