Rename mjBuffer to mjByteVec.
PiperOrigin-RevId: 664872558 Change-Id: I7b003374c390958667635fb21089faf2ece54b14
This commit is contained in:
committed by
Copybara-Service
parent
4aab00fa2d
commit
5d91231d31
@@ -1393,7 +1393,7 @@ Alternative orientation specifiers.
|
||||
|
||||
.. _ArrayHandles:
|
||||
|
||||
.. _mjBuffer:
|
||||
.. _mjByteVec:
|
||||
|
||||
.. _mjString:
|
||||
|
||||
@@ -1419,7 +1419,6 @@ C handles for C++ strings and vector types. When using from C, use the provided
|
||||
|
||||
#ifdef __cplusplus
|
||||
// C++: defined to be compatible with corresponding std types
|
||||
using mjBuffer = std::vector<std::byte>;
|
||||
using mjString = std::string;
|
||||
using mjStringVec = std::vector<std::string>;
|
||||
using mjIntVec = std::vector<int>;
|
||||
@@ -1427,9 +1426,9 @@ C handles for C++ strings and vector types. When using from C, use the provided
|
||||
using mjFloatVec = std::vector<float>;
|
||||
using mjFloatVecVec = std::vector<std::vector<float>>;
|
||||
using mjDoubleVec = std::vector<double>;
|
||||
using mjByteVec = std::vector<std::byte>;
|
||||
#else
|
||||
// C: opaque types
|
||||
typedef void mjBuffer;
|
||||
typedef void mjString;
|
||||
typedef void mjStringVec;
|
||||
typedef void mjIntVec;
|
||||
@@ -1437,6 +1436,7 @@ C handles for C++ strings and vector types. When using from C, use the provided
|
||||
typedef void mjFloatVec;
|
||||
typedef void mjFloatVecVec;
|
||||
typedef void mjDoubleVec;
|
||||
typedef void mjByteVec;
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user