Make mj_loadModelBuffer a public API.

PiperOrigin-RevId: 843105390
Change-Id: I4058471b4cf64995dd5ab43e9c8c24e322004b62
This commit is contained in:
Haroon Qureshi
2025-12-11 01:23:03 -08:00
committed by Copybara-Service
parent d0cf2a3ca5
commit caec236b2f
7 changed files with 39 additions and 2 deletions
+3
View File
@@ -6444,6 +6444,9 @@ public static unsafe extern void mj_saveModel(mjModel_* m, [MarshalAs(UnmanagedT
[DllImport("mujoco", CallingConvention = CallingConvention.Cdecl)]
public static unsafe extern mjModel_* mj_loadModel([MarshalAs(UnmanagedType.LPStr)]string filename, void* vfs);
[DllImport("mujoco", CallingConvention = CallingConvention.Cdecl)]
public static unsafe extern mjModel_* mj_loadModelBuffer(void* buffer, int buffer_sz);
[DllImport("mujoco", CallingConvention = CallingConvention.Cdecl)]
public static unsafe extern void mj_deleteModel(mjModel_* m);