how to use types from std like std::wstring #6497
Answered
by
emesare
ToufouMaster
asked this question in
Q&A
|
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. |
Answered by
emesare
Mar 17, 2025
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 |
0 replies
Answer selected by
plafosse
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This answer is assuming you have already defined a
std::wstringtype.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