how to use types from std like std::wstring #6497
-
Im unable to use std::wstring in my Types
That's the code i'm using to create my type and i can't figure out what's wrong with my code. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This answer is assuming you have already defined a struct `std::wstring` {
size_t len;
wchar_t start[1]; // really a length of `len`.
};
struct Test {
`std::wstring` my_string;
}; Binary Ninja does not support namespaces in type names (the type system was designed around C types). To create and use a type with the Relevant documentation: https://docs.binary.ninja/guide/types/type.html?h=backtick#special-characters |
Beta Was this translation helpful? Give feedback.
This answer is assuming you have already defined a
std::wstring
type.Binary Ninja does not support namespaces in type names (the type system was designed around C types). To create and use a type with the
::
syntax you must encapsulate the name in a backtick.Relevant documentation: https://docs.binary.ninja/guide/types/type.html?h=backtick#special-characters