-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Description
` private static string __intern(string value)
{
int hash = value.GetHashCode();
if (g_intern_table.ContainsKey(hash))
{
return g_intern_table[hash];
}
else
{
string interned = new string(NEW_ALLOC_CHAR, value.Length);
memcpy(interned, value);
g_intern_table.Add(hash, interned);
return interned;
}
}
`
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels