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