[DiscordArchive] but are you sure about there being a pair in set?
[DiscordArchive] but are you sure about there being a pair in set?
Archived author: Tea • Posted: 2025-08-17T11:12:22.258000+00:00
Original source
but are you sure about there being a pair in set?
Archived author: MaxtorCoder • Posted: 2025-08-17T11:15:55.156000+00:00
Original source
Pretty sure yeah <:hmm:661205560695324672>
Archived author: MaxtorCoder • Posted: 2025-08-17T11:16:13.402000+00:00
Original source
```c
void __fastcall sub_1416782C0(blz::unordered_set$blz::pair$uint32_t_const$LicenseGameData *a1)
{
unsigned __int64 i; // rsi
blz::chained_hash_node$blz::pair$uint32_t_const$LicenseGameData *v3; // rbx
blz::chained_hash_node$blz::pair$uint32_t_const$LicenseGameData *next; // rdi
if ( a1->m_buckets )
{
for ( i = 0; i < a1->m_bucket_count; ++i )
{
v3 = a1->m_buckets[i];
if ( v3 )
{
do
{
next = v3->next;
sub_141679870(&v3->val.second);
sub_1401ACE90(a1: (__int64)v3, a2: "struct blz::chained_hash_node<struct blz::pair<unsigned int const ,struct LicenseGameData> >", a3: 0xFFFFFFFA, a4: 0);
v3 = next;
}
while ( next );
}
}
sub_1401ACE90(a1: (__int64)a1->m_buckets, a2: "struct blz::chained_hash_node<struct blz::pair<unsigned int const ,struct LicenseGameData> >*", a3: 0xFFFFFFFA, a4: 0);
a1->m_buckets = 0;
}
}
```
Archived author: MaxtorCoder • Posted: 2025-08-17T11:17:26.836000+00:00
Original source
Unless those strings are the allocator and this is a `blz::unordered_map<uint32_t, LicenseGameData>`
Archived author: MaxtorCoder • Posted: 2025-08-17T11:22:11.420000+00:00
Original source
But that would not align properly afaik.
Archived author: MaxtorCoder • Posted: 2025-08-17T11:22:22.678000+00:00
Original source
Oh it's the same size
Archived author: MaxtorCoder • Posted: 2025-08-17T11:22:30.497000+00:00
Original source
Okay so I am just stupid then <:FacePalm:803333049453903953>
Archived author: MaxtorCoder • Posted: 2025-08-17T11:23:46.702000+00:00
Original source
So when do I know then whether it’s unordered_set or unordered_map
Archived author: Tea • Posted: 2025-08-17T11:37:29.749000+00:00
Original source
if there is a pair its 99% a map
Archived author: MaxtorCoder • Posted: 2025-08-17T11:42:54.074000+00:00
Original source
Ah okay