1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-12 21:34:11 +02:00

Address added to ToString

This commit is contained in:
Brian Fiete 2020-06-03 12:05:49 -07:00
parent a328334ab3
commit 88926da1ed

View file

@ -15,6 +15,11 @@ namespace System
{ {
return new box this; return new box this;
} }
public override void ToString(String strBuffer)
{
strBuffer.AppendF("0x{0:P}", (uint)(void*)mVal);
}
} }
struct Pointer<T> : IHashable struct Pointer<T> : IHashable
@ -25,5 +30,12 @@ namespace System
{ {
return (int)(void*)mVal; return (int)(void*)mVal;
} }
public override void ToString(String strBuffer)
{
strBuffer.Append("(");
typeof(T).GetFullName(strBuffer);
strBuffer.AppendF("*)0x{0:P}", (uint)(void*)mVal);
}
} }
} }