1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-19 16:40:26 +02:00
Beef/BeefLibs/corlib/src/Pointer.bf

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;
}
}
}