mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-30 05:15:59 +02:00
Bug fixes, installer, [Export]
Fixed a bunch of bugs in aggregate const initializers Fixed ZIP bugs Fixed a compilation case where we change protection while reifying a type Added another project kind - Dynamic Library Added [Export] for DLL method exporting Fixed some issues of things being generated as __NOINLINE incorrectly Fixed an issue with module extensions with not-yet-demanded on-demand methods Started adding Installer
This commit is contained in:
parent
efa22e51fb
commit
09016c8dc0
135 changed files with 3615 additions and 2337 deletions
|
@ -399,11 +399,11 @@ namespace System
|
|||
}
|
||||
}
|
||||
|
||||
public int GetHashCode()
|
||||
static int GetHashCode(char8* ptr, int length)
|
||||
{
|
||||
int charsLeft = mLength;
|
||||
int charsLeft = length;
|
||||
int hash = 0;
|
||||
char8* curPtr = Ptr;
|
||||
char8* curPtr = ptr;
|
||||
let intSize = sizeof(int);
|
||||
while (charsLeft >= intSize)
|
||||
{
|
||||
|
@ -422,6 +422,11 @@ namespace System
|
|||
return hash;
|
||||
}
|
||||
|
||||
public int GetHashCode()
|
||||
{
|
||||
return GetHashCode(Ptr, mLength);
|
||||
}
|
||||
|
||||
public override void ToString(String strBuffer)
|
||||
{
|
||||
strBuffer.Append(this);
|
||||
|
@ -2495,7 +2500,7 @@ namespace System
|
|||
}
|
||||
}
|
||||
|
||||
public struct StringView : Span<char8>, IFormattable, IPrintable
|
||||
public struct StringView : Span<char8>, IFormattable, IPrintable, IOpEquals<String>, IHashable
|
||||
{
|
||||
public this()
|
||||
{
|
||||
|
@ -2579,6 +2584,11 @@ namespace System
|
|||
}
|
||||
}
|
||||
|
||||
public int GetHashCode()
|
||||
{
|
||||
return String.[Friend]GetHashCode(mPtr, mLength);
|
||||
}
|
||||
|
||||
public override void ToString(String strBuffer)
|
||||
{
|
||||
strBuffer.Append(mPtr, mLength);
|
||||
|
@ -2840,11 +2850,13 @@ namespace System
|
|||
return String.UnQuoteString(Ptr, Length, outString);
|
||||
}
|
||||
|
||||
[NoDiscard]
|
||||
public StringView Substring(int pos)
|
||||
{
|
||||
return .(this, pos);
|
||||
}
|
||||
|
||||
[NoDiscard]
|
||||
public StringView Substring(int pos, int length)
|
||||
{
|
||||
return .(this, pos, length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue