Here are the examples of the csharp api System.Span.GetPinnableReference() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2552 Examples
19
Source : ManagedReadStream.cs
with MIT License
from Const-me
with MIT License
from Const-me
public override int Read( byte[] buffer, int offset, int count )
{
var span = new Span<byte>( buffer, offset, count );
int cbRead;
native.read( ref span.GetPinnableReference(), count, out cbRead );
return cbRead;
}
19
Source : ManagedWriteStream.cs
with MIT License
from Const-me
with MIT License
from Const-me
public override void Write( byte[] buffer, int offset, int count )
{
// var span = new ReadOnlySpan<byte>( buffer, offset, count );
// Can't use ReadOnlySpan due to API inconsistency, there's no ref readonly arguments, only ref readonly returns
var span = new Span<byte>( buffer, offset, count );
native.write( ref span.GetPinnableReference(), count );
}
19
Source : VectorPathShape.cs
with MIT License
from Const-me
with MIT License
from Const-me
Direct2D.iPathGeometry iPathData.createPathGeometry( Direct2D.iDrawDevice device )
{
createNativeStructures( out var p, out var s, out var f, out var pd );
return device.createPathGeometry( ref p.GetPinnableReference(), ref s.GetPinnableReference(), ref f.GetPinnableReference(), pd );
}
19
Source : VectorPathShape.cs
with MIT License
from Const-me
with MIT License
from Const-me
iPathGeometry iPathData.createPathGeometry( iVrmacDraw utils )
{
createNativeStructures( out var p, out var s, out var f, out var pd );
return utils.createPathGeometry( ref p.GetPinnableReference(), ref s.GetPinnableReference(), ref f.GetPinnableReference(), pd );
}
19
Source : SimdUtilsExt.cs
with MIT License
from Const-me
with MIT License
from Const-me
[MethodImpl( MethodImplOptions.AggressiveInlining )]
public static void offsetGlyphs( this iSimdUtils utils, Span<sVertexWithId> dest, ReadOnlySpan<sGlyphVertex> source, CPoint offsetValue )
{
if( source.IsEmpty || dest.IsEmpty || dest.Length < source.Length || 0 != ( source.Length % 4 ) )
throw new ArgumentException();
int count = source.Length;
unsafe
{
fixed ( sGlyphVertex* ptr = source )
{
IntPtr sourcePtr = (IntPtr)ptr;
utils.offsetGlyphs( ref dest.GetPinnableReference(), sourcePtr, count, offsetValue );
}
}
}
19
Source : SimpleShape.cs
with MIT License
from Const-me
with MIT License
from Const-me
Direct2D.iPathGeometry iPathData.createPathGeometry( Direct2D.iDrawDevice device )
{
createNativeStructures( out var p, out var s, out var f, out var pd );
return device.createPathGeometry( ref p.GetPinnableReference(), ref s, ref f, pd );
}
19
Source : SimpleShape.cs
with MIT License
from Const-me
with MIT License
from Const-me
iPathGeometry iPathData.createPathGeometry( iVrmacDraw utils )
{
createNativeStructures( out var p, out var s, out var f, out var pd );
return utils.createPathGeometry( ref p.GetPinnableReference(), ref s, ref f, pd );
}
19
Source : DeviceContextExt.cs
with MIT License
from Const-me
with MIT License
from Const-me
public static void setViewports( this IDeviceContext context, CSize size, Span<Viewport> viewports )
{
context.SetViewports( viewports.Length, ref viewports.GetPinnableReference(), size.cx, size.cy );
}
19
Source : PathGeometryExt.cs
with MIT License
from Const-me
with MIT License
from Const-me
public static void downloadPolylines( this iPolylinePath path, PolylineDelegate poly )
{
Span<sPolylineFigure> figures = stackalloc sPolylineFigure[ path.info.figuresCount ];
path.getFigures( ref figures.GetPinnableReference() );
int figureIndex = 0;
foreach( var f in figures )
{
if( f.vertexCount > 0 )
{
var verts = Unsafe.readSpan<Vector2>( f.firstVertexPointer, f.vertexCount );
poly( figureIndex, verts, f.isFilled, f.isClosed );
}
figureIndex++;
}
}
19
Source : PathGeometryExt.cs
with MIT License
from Const-me
with MIT License
from Const-me
public static void copyVertices( this iTriangleMesh mesh, Span<sVertexWithId> span, uint id )
{
mesh.copyVertices( ref span.GetPinnableReference(), id );
}
19
Source : BufferWriter.cs
with MIT License
from Cysharp
with MIT License
from Cysharp
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public ref byte GetPointer(int sizeHint)
{
Ensure(sizeHint);
if (_segment.Array != null)
{
return ref _segment.Array[_segment.Offset + _buffered];
}
else
{
return ref _span.GetPinnableReference();
}
}
19
Source : Span.cs
with MIT License
from dotnet
with MIT License
from dotnet
[Benchmark(OperationsPerInvoke = 16)]
public void GetPinnableReference()
{
var span = new System.Span<T>(_array);
Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference());
Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference());
Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference());
Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference()); Consume(span.GetPinnableReference());
}
19
Source : GamepadState.cs
with MIT License
from dotnet
with MIT License
from dotnet
public unsafe Span<Button> GetButtons()
=> new(Unsafe.AsPointer(ref _buttons.Memory.Span.GetPinnableReference())
19
Source : JoystickState.cs
with MIT License
from dotnet
with MIT License
from dotnet
public unsafe Span<Axis> GetAxes()
=> new(Unsafe.AsPointer(ref _axes.Memory.Span.GetPinnableReference())
19
Source : MouseState.cs
with MIT License
from dotnet
with MIT License
from dotnet
public unsafe Span<MouseButton> GetSupportedButtons()
=> new(Unsafe.AsPointer(ref _buttons.Memory.Span.GetPinnableReference())
19
Source : MouseState.cs
with MIT License
from dotnet
with MIT License
from dotnet
public unsafe Span<ScrollWheel> GetScrollWheels()
=> new(Unsafe.AsPointer(ref _scrollWheels.Memory.Span.GetPinnableReference())
19
Source : DXCOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 76, Column 34 in D:/Windows Kits/10/Include/10.0.22000.0/um\\dxcapi.h")]
public static unsafe int CreateInstance(this DXC thisApi, Span<Guid> rclsid, Span<Guid> riid, ref void* ppv)
{
// SpanOverloader
return thisApi.CreateInstance(ref rclsid.GetPinnableReference(), ref riid.GetPinnableReference(), ref ppv);
}
19
Source : DXCOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 83, Column 34 in D:/Windows Kits/10/Include/10.0.22000.0/um\\dxcapi.h")]
public static unsafe int CreateInstance2(this DXC thisApi, IMalloc* pMalloc, Guid* rclsid, Span<Guid> riid, void** ppv)
{
// SpanOverloader
return thisApi.CreateInstance2(pMalloc, rclsid, ref riid.GetPinnableReference(), ppv);
}
19
Source : DXCOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 83, Column 34 in D:/Windows Kits/10/Include/10.0.22000.0/um\\dxcapi.h")]
public static unsafe int CreateInstance2(this DXC thisApi, IMalloc* pMalloc, Guid* rclsid, Span<Guid> riid, ref void* ppv)
{
// SpanOverloader
return thisApi.CreateInstance2(pMalloc, rclsid, ref riid.GetPinnableReference(), ref ppv);
}
19
Source : DXCOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 83, Column 34 in D:/Windows Kits/10/Include/10.0.22000.0/um\\dxcapi.h")]
public static unsafe int CreateInstance2(this DXC thisApi, IMalloc* pMalloc, Span<Guid> rclsid, Guid* riid, void** ppv)
{
// SpanOverloader
return thisApi.CreateInstance2(pMalloc, ref rclsid.GetPinnableReference(), riid, ppv);
}
19
Source : DXCOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 83, Column 34 in D:/Windows Kits/10/Include/10.0.22000.0/um\\dxcapi.h")]
public static unsafe int CreateInstance2(this DXC thisApi, IMalloc* pMalloc, Span<Guid> rclsid, Guid* riid, ref void* ppv)
{
// SpanOverloader
return thisApi.CreateInstance2(pMalloc, ref rclsid.GetPinnableReference(), riid, ref ppv);
}
19
Source : DXCOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 83, Column 34 in D:/Windows Kits/10/Include/10.0.22000.0/um\\dxcapi.h")]
public static unsafe int CreateInstance2(this DXC thisApi, IMalloc* pMalloc, Span<Guid> rclsid, Span<Guid> riid, void** ppv)
{
// SpanOverloader
return thisApi.CreateInstance2(pMalloc, ref rclsid.GetPinnableReference(), ref riid.GetPinnableReference(), ppv);
}
19
Source : DXVAOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 1971, Column 8 in D:/Windows Kits/10/Include/10.0.22000.0/um\\dxva2api.h")]
public static unsafe int DXVA2CreateVideoService(this DXVA thisApi, Span<Silk.NET.Direct3D9.IDirect3DDevice9> pDD, Span<Guid> riid, void** ppService)
{
// SpanOverloader
return thisApi.DXVA2CreateVideoService(ref pDD.GetPinnableReference(), ref riid.GetPinnableReference(), ppService);
}
19
Source : DXVAOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 1971, Column 8 in D:/Windows Kits/10/Include/10.0.22000.0/um\\dxva2api.h")]
public static unsafe int DXVA2CreateVideoService(this DXVA thisApi, Span<Silk.NET.Direct3D9.IDirect3DDevice9> pDD, Span<Guid> riid, ref void* ppService)
{
// SpanOverloader
return thisApi.DXVA2CreateVideoService(ref pDD.GetPinnableReference(), ref riid.GetPinnableReference(), ref ppService);
}
19
Source : XInputOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 258, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetState(this XInput thisApi, uint dwUserIndex, Span<State> pState)
{
// SpanOverloader
return thisApi.GetState(dwUserIndex, ref pState.GetPinnableReference());
}
19
Source : XInputOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 264, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint SetState(this XInput thisApi, uint dwUserIndex, Span<Vibration> pVibration)
{
// SpanOverloader
return thisApi.SetState(dwUserIndex, ref pVibration.GetPinnableReference());
}
19
Source : XInputOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 270, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetCapabilities(this XInput thisApi, uint dwUserIndex, uint dwFlags, Span<Capabilities> pCapabilities)
{
// SpanOverloader
return thisApi.GetCapabilities(dwUserIndex, dwFlags, ref pCapabilities.GetPinnableReference());
}
19
Source : XInputOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, char* pRenderDeviceId, uint* pRenderCount, Span<char> pCaptureDeviceId, uint* pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, pRenderDeviceId, pRenderCount, ref pCaptureDeviceId.GetPinnableReference(), pCaptureCount);
}
19
Source : XInputOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, Span<char> pRenderDeviceId, uint* pRenderCount, char* pCaptureDeviceId, uint* pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, ref pRenderDeviceId.GetPinnableReference(), pRenderCount, pCaptureDeviceId, pCaptureCount);
}
19
Source : XInputOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, Span<char> pRenderDeviceId, uint* pRenderCount, char* pCaptureDeviceId, Span<uint> pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, ref pRenderDeviceId.GetPinnableReference(), pRenderCount, pCaptureDeviceId, ref pCaptureCount.GetPinnableReference());
}
19
Source : XInputOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, Span<char> pRenderDeviceId, uint* pRenderCount, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pCaptureDeviceId, Span<uint> pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, ref pRenderDeviceId.GetPinnableReference(), pRenderCount, pCaptureDeviceId, ref pCaptureCount.GetPinnableReference());
}
19
Source : XInputOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, Span<char> pRenderDeviceId, Span<uint> pRenderCount, char* pCaptureDeviceId, uint* pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, ref pRenderDeviceId.GetPinnableReference(), ref pRenderCount.GetPinnableReference(), pCaptureDeviceId, pCaptureCount);
}
19
Source : XInputOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, Span<char> pRenderDeviceId, Span<uint> pRenderCount, char* pCaptureDeviceId, Span<uint> pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, ref pRenderDeviceId.GetPinnableReference(), ref pRenderCount.GetPinnableReference(), pCaptureDeviceId, ref pCaptureCount.GetPinnableReference());
}
19
Source : XInputOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, Span<char> pRenderDeviceId, Span<uint> pRenderCount, Span<char> pCaptureDeviceId, uint* pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, ref pRenderDeviceId.GetPinnableReference(), ref pRenderCount.GetPinnableReference(), ref pCaptureDeviceId.GetPinnableReference(), pCaptureCount);
}
19
Source : XInputOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, Span<char> pRenderDeviceId, Span<uint> pRenderCount, Span<char> pCaptureDeviceId, Span<uint> pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, ref pRenderDeviceId.GetPinnableReference(), ref pRenderCount.GetPinnableReference(), ref pCaptureDeviceId.GetPinnableReference(), ref pCaptureCount.GetPinnableReference());
}
19
Source : XInputOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, Span<char> pRenderDeviceId, Span<uint> pRenderCount, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pCaptureDeviceId, uint* pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, ref pRenderDeviceId.GetPinnableReference(), ref pRenderCount.GetPinnableReference(), pCaptureDeviceId, pCaptureCount);
}
19
Source : XInputOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, Span<char> pRenderDeviceId, Span<uint> pRenderCount, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pCaptureDeviceId, Span<uint> pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, ref pRenderDeviceId.GetPinnableReference(), ref pRenderCount.GetPinnableReference(), pCaptureDeviceId, ref pCaptureCount.GetPinnableReference());
}
19
Source : XInputOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pRenderDeviceId, uint* pRenderCount, char* pCaptureDeviceId, Span<uint> pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, pRenderDeviceId, pRenderCount, pCaptureDeviceId, ref pCaptureCount.GetPinnableReference());
}
19
Source : XInputOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pRenderDeviceId, uint* pRenderCount, Span<char> pCaptureDeviceId, uint* pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, pRenderDeviceId, pRenderCount, ref pCaptureDeviceId.GetPinnableReference(), pCaptureCount);
}
19
Source : XInputOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pRenderDeviceId, uint* pRenderCount, Span<char> pCaptureDeviceId, Span<uint> pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, pRenderDeviceId, pRenderCount, ref pCaptureDeviceId.GetPinnableReference(), ref pCaptureCount.GetPinnableReference());
}
19
Source : XInputOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pRenderDeviceId, uint* pRenderCount, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pCaptureDeviceId, Span<uint> pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, pRenderDeviceId, pRenderCount, pCaptureDeviceId, ref pCaptureCount.GetPinnableReference());
}
19
Source : XInputOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pRenderDeviceId, Span<uint> pRenderCount, char* pCaptureDeviceId, uint* pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, pRenderDeviceId, ref pRenderCount.GetPinnableReference(), pCaptureDeviceId, pCaptureCount);
}
19
Source : XInputOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 288, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetAudioDeviceIds(this XInput thisApi, uint dwUserIndex, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pRenderDeviceId, Span<uint> pRenderCount, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pCaptureDeviceId, Span<uint> pCaptureCount)
{
// SpanOverloader
return thisApi.GetAudioDeviceIds(dwUserIndex, pRenderDeviceId, ref pRenderCount.GetPinnableReference(), pCaptureDeviceId, ref pCaptureCount.GetPinnableReference());
}
19
Source : XInputOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 297, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetBatteryInformation(this XInput thisApi, uint dwUserIndex, byte devType, Span<BatteryInformation> pBatteryInformation)
{
// SpanOverloader
return thisApi.GetBatteryInformation(dwUserIndex, devType, ref pBatteryInformation.GetPinnableReference());
}
19
Source : XInputOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
[NativeName("Src", "Line 304, Column 14 in D:/Windows Kits/10/Include/10.0.22000.0/um\\Xinput.h")]
public static unsafe uint GetKeystroke(this XInput thisApi, uint dwUserIndex, uint dwReserved, Span<Keystroke> pKeystroke)
{
// SpanOverloader
return thisApi.GetKeystroke(dwUserIndex, dwReserved, ref pKeystroke.GetPinnableReference());
}
19
Source : AppleContextLoggingFunctionsOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe void LogMessagesToStderr<T0>(this AppleContextLoggingFunctions thisApi, [Flow(FlowDirection.In)] byte* errstr, [Flow(FlowDirection.In)] void* private_info, [Flow(FlowDirection.In)] nuint cb, [Flow(FlowDirection.Out)] Span<T0> user_data) where T0 : unmanaged
{
// SpanOverloader
thisApi.LogMessagesToStderr(errstr, private_info, cb, out user_data.GetPinnableReference());
}
19
Source : AppleContextLoggingFunctionsOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe void LogMessagesToStderr<T0, T1>(this AppleContextLoggingFunctions thisApi, [Flow(FlowDirection.In)] byte* errstr, [Flow(FlowDirection.In)] ReadOnlySpan<T0> private_info, [Flow(FlowDirection.In)] nuint cb, [Flow(FlowDirection.Out)] Span<T1> user_data) where T0 : unmanaged where T1 : unmanaged
{
// SpanOverloader
thisApi.LogMessagesToStderr(errstr, in private_info.GetPinnableReference(), cb, out user_data.GetPinnableReference());
}
19
Source : AppleContextLoggingFunctionsOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe void LogMessagesToStderr<T0>(this AppleContextLoggingFunctions thisApi, [Flow(FlowDirection.In)] ReadOnlySpan<byte> errstr, [Flow(FlowDirection.In)] void* private_info, [Flow(FlowDirection.In)] nuint cb, [Flow(FlowDirection.Out)] Span<T0> user_data) where T0 : unmanaged
{
// SpanOverloader
thisApi.LogMessagesToStderr(in errstr.GetPinnableReference(), private_info, cb, out user_data.GetPinnableReference());
}
19
Source : AppleContextLoggingFunctionsOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe void LogMessagesToStderr<T0, T1>(this AppleContextLoggingFunctions thisApi, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string errstr, [Flow(FlowDirection.In)] ReadOnlySpan<T0> private_info, [Flow(FlowDirection.In)] nuint cb, [Flow(FlowDirection.Out)] Span<T1> user_data) where T0 : unmanaged where T1 : unmanaged
{
// SpanOverloader
thisApi.LogMessagesToStderr(errstr, in private_info.GetPinnableReference(), cb, out user_data.GetPinnableReference());
}
19
Source : AppleContextLoggingFunctionsOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe void LogMessagesToStdout<T0>(this AppleContextLoggingFunctions thisApi, [Flow(FlowDirection.In)] byte* errstr, [Flow(FlowDirection.In)] void* private_info, [Flow(FlowDirection.In)] nuint cb, [Flow(FlowDirection.Out)] Span<T0> user_data) where T0 : unmanaged
{
// SpanOverloader
thisApi.LogMessagesToStdout(errstr, private_info, cb, out user_data.GetPinnableReference());
}
See More Examples