Use ImmutableArrayBuilder<char> for bytecode text

このコミットが含まれているのは:
Sergio Pedri committed 2022-10-07 09:14:17 -07:00
1 親 a751d128a3
コミット a15fce2a54
5ファイル変更
+21 -16

検索条件に一致するファイルはありません

+9 -1
ファイルの表示
@@ -119,7 +119,15 @@ internal ref struct ImmutableArrayBuilder<T>
/// </summary>
public Writer()
{
this.array = new T[8];
if (typeof(T) == typeof(char))
{
this.array = new T[1024];
}
else
{
this.array = new T[8];
}
this.index = 0;
}