Daily update on 20250618-051714 by Nitload Youmu. Additional Message : Brief support to collection operation in EXPRESS. A collection type added in core lib and compilestack.

Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
Nitload
2025-06-18 05:17:14 +08:00
parent 74c01effe4
commit c624a8ca38
300 changed files with 12227 additions and 4303 deletions
+1 -2
View File
@@ -52,8 +52,7 @@ namespace StgSharp.HighPerformance
{
ReadOnlySpan<char> nameSpan = _name.AsSpan();
fixed( char* cptr = nameSpan ) {
return InternalIO.Intrinsic
.city_hash_simplify( cptr, _name.Length );
return InternalIO.Intrinsic.city_hash_simplify( cptr, _name.Length );
}
}
+4 -2
View File
@@ -81,7 +81,8 @@ namespace StgSharp.HighPerformance
public T Read<T>( int index ) where T: struct, INumber<T>
{
fixed( byte* p = Buffer ) {
fixed( byte* p = Buffer )
{
#pragma warning disable CS8500
return *( ( T* )p + index );
#pragma warning restore CS8500
@@ -105,7 +106,8 @@ namespace StgSharp.HighPerformance
[MethodImpl( MethodImplOptions.AggressiveInlining )]
public void Write<T>( int index, T value ) where T: struct, INumber<T>
{
fixed( byte* p = Buffer ) {
fixed( byte* p = Buffer )
{
#pragma warning disable CS8500
*( ( T* )p + index ) = value;
#pragma warning restore CS8500
-1
View File
@@ -28,7 +28,6 @@
//
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Drawing;
@@ -46,20 +46,13 @@ namespace StgSharp.HighPerformance
}
[MethodImpl( MethodImplOptions.AggressiveInlining )]
public static unsafe int CityHashSimplify(
char* span,
int begin,
int length )
public static unsafe int CityHashSimplify( char* span, int begin, int length )
{
return InternalIO.Intrinsic
.city_hash_simplify( span + begin, length );
return InternalIO.Intrinsic.city_hash_simplify( span + begin, length );
}
[MethodImpl( MethodImplOptions.AggressiveInlining )]
public static unsafe int IndexOfCharPair(
char* source,
int pairValue,
int length )
public static unsafe int IndexOfCharPair( char* source, int pairValue, int length )
{
return InternalIO.Intrinsic.index_pair( source, pairValue, length );
}