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:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user