Refactor stack allocations to have a clean byte allocation interface.

PiperOrigin-RevId: 558881470
Change-Id: I08c45cb5fa25a1a9c39560e598e805cfa5141c3e
This commit is contained in:
Matthew Bennice
2023-08-21 13:17:48 -07:00
committed by Copybara-Service
parent 22fd0586b1
commit 59138af10b
10 changed files with 67 additions and 64 deletions
+3
View File
@@ -108,6 +108,9 @@ MJAPI mjtNum* mj_stackAlloc(mjData* d, int size);
// mjData stack allocate for array of ints
MJAPI int* mj_stackAllocInt(mjData* d, int size);
// mjData stack allocate for a specific size of bytes
MJAPI void* mj_stackAllocBytes(mjData* d, size_t size);
// de-allocate data
MJAPI void mj_deleteData(mjData* d);