mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-19 16:40:26 +02:00
29 lines
327 B
Beef
29 lines
327 B
Beef
namespace System
|
|
{
|
|
[AlwaysInclude]
|
|
struct Pointer : IHashable
|
|
{
|
|
void* mVal;
|
|
|
|
public int GetHashCode()
|
|
{
|
|
return (int)mVal;
|
|
}
|
|
|
|
[AlwaysInclude]
|
|
Object GetBoxed()
|
|
{
|
|
return new box this;
|
|
}
|
|
}
|
|
|
|
struct Pointer<T> : IHashable
|
|
{
|
|
T* mVal;
|
|
|
|
public int GetHashCode()
|
|
{
|
|
return (int)(void*)mVal;
|
|
}
|
|
}
|
|
}
|