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
+20
View File
@@ -839,6 +839,26 @@ FUNCTIONS: Mapping[str, FunctionDecl] = dict([
),
doc='Load model from binary MJB file. If vfs is not NULL, look up file in vfs before reading from disk.', # pylint: disable=line-too-long
)),
('mj_loadModelBuffer',
FunctionDecl(
name='mj_loadModelBuffer',
return_type=PointerType(
inner_type=ValueType(name='mjModel'),
),
parameters=(
FunctionParameterDecl(
name='buffer',
type=PointerType(
inner_type=ValueType(name='void', is_const=True),
),
),
FunctionParameterDecl(
name='buffer_sz',
type=ValueType(name='int'),
),
),
doc='Load model from memory buffer.',
)),
('mj_deleteModel',
FunctionDecl(
name='mj_deleteModel',