mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Address added to ToString
This commit is contained in:
parent
a328334ab3
commit
88926da1ed
1 changed files with 12 additions and 0 deletions
|
@ -15,6 +15,11 @@ namespace System
|
|||
{
|
||||
return new box this;
|
||||
}
|
||||
|
||||
public override void ToString(String strBuffer)
|
||||
{
|
||||
strBuffer.AppendF("0x{0:P}", (uint)(void*)mVal);
|
||||
}
|
||||
}
|
||||
|
||||
struct Pointer<T> : IHashable
|
||||
|
@ -25,5 +30,12 @@ namespace System
|
|||
{
|
||||
return (int)(void*)mVal;
|
||||
}
|
||||
|
||||
public override void ToString(String strBuffer)
|
||||
{
|
||||
strBuffer.Append("(");
|
||||
typeof(T).GetFullName(strBuffer);
|
||||
strBuffer.AppendF("*)0x{0:P}", (uint)(void*)mVal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue