Skip to main content

fromsoftware_shared/util/
unknown_struct.rs

1/// An opaque, still-unreversed native structure. This is equivalent to a `u8`
2/// array, but its use indicates that we know a structure exists and we know its
3/// size but we don't know its purpose or anything else about it.
4///
5/// Don't use this for values that you don't believe to be distinct structs at
6/// the C++ level; just use `[u8; N]` directly instead. You can tell when
7/// reversing because structs will often be passed into functions using base
8/// addresses within their parent structs.
9#[repr(C)]
10pub struct UnknownStruct<const N: usize>([u8; N]);