1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Fixed int-lowered structs with immutable methods in LLVM

This commit is contained in:
Brian Fiete 2020-03-12 05:40:36 -07:00
parent 7a08e7bf11
commit 5276bd4533
4 changed files with 83 additions and 8 deletions

View file

@ -26,6 +26,7 @@ namespace System
char8* mPtr = null;
extern const String* sStringLiterals;
public const String Empty = "";
#if BF_LARGE_STRINGS
const uint64 SizeFlags = 0x3FFFFFFF'FFFFFFFF;
@ -426,6 +427,16 @@ namespace System
ptr[mLength] = 0;
}
private void Append(char8[] arr, int idx, int length)
{
Append(&arr.getRef(idx), length);
}
public void Append(StringView arr, int idx, int length)
{
Append(arr.Ptr + idx, length);
}
public void Append(StringView value)
{
//Contract.Ensures(Contract.Result<String>() != null);