Here are the examples of the csharp api System.ReadOnlySpan.GetPinnableReference() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3193 Examples
19
Source : EncodingExtensions.cs
with MIT License
from Azure
with MIT License
from Azure
public static unsafe string GetString(this Encoding encoding, ReadOnlySpan<byte> src)
{
if (src.IsEmpty)
{
return string.Empty;
}
fixed (byte* bytes = &src.GetPinnableReference())
{
return encoding.GetString(bytes, src.Length);
}
}
19
Source : BufferUploadStream.cs
with MIT License
from Const-me
with MIT License
from Const-me
public override void Write( ReadOnlySpan<byte> buffer )
{
unsafe
{
fixed ( byte* bufferPointer = &buffer.GetPinnableReference() )
{
stream.write( (IntPtr)bufferPointer, buffer.Length );
}
}
}
19
Source : DeviceContextUnsafeExt.cs
with MIT License
from Const-me
with MIT License
from Const-me
public static void UpdateBuffer( this IDeviceContext context, IBuffer buffer, int offset, ReadOnlySpan<byte> data, ResourceStateTransitionMode stateTransitionMode )
{
unsafe
{
fixed ( byte* pointer = &data.GetPinnableReference() )
{
context.UpdateBuffer( buffer, offset, data.Length, (IntPtr)pointer, stateTransitionMode );
}
}
}
19
Source : DeviceContextUnsafeExt.cs
with MIT License
from Const-me
with MIT License
from Const-me
public static void writeBuffer( this IDeviceContext context, IBuffer buffer, ReadOnlySpan<byte> data )
{
unsafe
{
fixed ( byte* pointer = &data.GetPinnableReference() )
context.MapBufferWriteDiscard( buffer, (IntPtr)pointer, data.Length );
}
}
19
Source : ReadOnlySpan.cs
with MIT License
from dotnet
with MIT License
from dotnet
[Benchmark(OperationsPerInvoke = 16 * 2)]
public char GetPinnableReference()
{
ReadOnlySpan<char> span = _sampeString.replacedpan();
char c;
c = span.GetPinnableReference(); c = span.GetPinnableReference();
c = span.GetPinnableReference(); c = span.GetPinnableReference();
c = span.GetPinnableReference(); c = span.GetPinnableReference();
c = span.GetPinnableReference(); c = span.GetPinnableReference();
c = span.GetPinnableReference(); c = span.GetPinnableReference();
c = span.GetPinnableReference(); c = span.GetPinnableReference();
c = span.GetPinnableReference(); c = span.GetPinnableReference();
c = span.GetPinnableReference(); c = span.GetPinnableReference();
c = span.GetPinnableReference(); c = span.GetPinnableReference();
c = span.GetPinnableReference(); c = span.GetPinnableReference();
c = span.GetPinnableReference(); c = span.GetPinnableReference();
c = span.GetPinnableReference(); c = span.GetPinnableReference();
c = span.GetPinnableReference(); c = span.GetPinnableReference();
c = span.GetPinnableReference(); c = span.GetPinnableReference();
c = span.GetPinnableReference(); c = span.GetPinnableReference();
c = span.GetPinnableReference(); c = span.GetPinnableReference();
return c;
}
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)] ReadOnlySpan<T0> private_info, [Flow(FlowDirection.In)] nuint cb, [Flow(FlowDirection.Out)] void* user_data) where T0 : unmanaged
{
// SpanOverloader
thisApi.LogMessagesToStderr(errstr, in private_info.GetPinnableReference(), cb, user_data);
}
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(this AppleContextLoggingFunctions thisApi, [Flow(FlowDirection.In)] ReadOnlySpan<byte> errstr, [Flow(FlowDirection.In)] void* private_info, [Flow(FlowDirection.In)] nuint cb, [Flow(FlowDirection.Out)] void* user_data)
{
// SpanOverloader
thisApi.LogMessagesToStderr(in errstr.GetPinnableReference(), private_info, cb, user_data);
}
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>(this AppleContextLoggingFunctions thisApi, [Flow(FlowDirection.In)] ReadOnlySpan<byte> errstr, [Flow(FlowDirection.In)] ReadOnlySpan<T0> private_info, [Flow(FlowDirection.In)] nuint cb, [Flow(FlowDirection.Out)] void* user_data) where T0 : unmanaged
{
// SpanOverloader
thisApi.LogMessagesToStderr(in errstr.GetPinnableReference(), in private_info.GetPinnableReference(), cb, user_data);
}
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)] ReadOnlySpan<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(in errstr.GetPinnableReference(), 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), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string errstr, [Flow(FlowDirection.In)] ReadOnlySpan<T0> private_info, [Flow(FlowDirection.In)] nuint cb, [Flow(FlowDirection.Out)] void* user_data) where T0 : unmanaged
{
// SpanOverloader
thisApi.LogMessagesToStderr(errstr, in private_info.GetPinnableReference(), cb, user_data);
}
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)] ReadOnlySpan<T0> private_info, [Flow(FlowDirection.In)] nuint cb, [Flow(FlowDirection.Out)] void* user_data) where T0 : unmanaged
{
// SpanOverloader
thisApi.LogMessagesToStdout(errstr, in private_info.GetPinnableReference(), cb, user_data);
}
19
Source : AppleContextLoggingFunctionsOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe void LogMessagesToStdout<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.LogMessagesToStdout(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(this AppleContextLoggingFunctions thisApi, [Flow(FlowDirection.In)] ReadOnlySpan<byte> errstr, [Flow(FlowDirection.In)] void* private_info, [Flow(FlowDirection.In)] nuint cb, [Flow(FlowDirection.Out)] void* user_data)
{
// SpanOverloader
thisApi.LogMessagesToStdout(in errstr.GetPinnableReference(), private_info, cb, user_data);
}
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)] 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.LogMessagesToStdout(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 LogMessagesToStdout<T0>(this AppleContextLoggingFunctions thisApi, [Flow(FlowDirection.In)] ReadOnlySpan<byte> errstr, [Flow(FlowDirection.In)] ReadOnlySpan<T0> private_info, [Flow(FlowDirection.In)] nuint cb, [Flow(FlowDirection.Out)] void* user_data) where T0 : unmanaged
{
// SpanOverloader
thisApi.LogMessagesToStdout(in errstr.GetPinnableReference(), in private_info.GetPinnableReference(), cb, user_data);
}
19
Source : AppleContextLoggingFunctionsOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe void LogMessagesToStdout<T0, T1>(this AppleContextLoggingFunctions thisApi, [Flow(FlowDirection.In)] ReadOnlySpan<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.LogMessagesToStdout(in errstr.GetPinnableReference(), 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), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string errstr, [Flow(FlowDirection.In)] ReadOnlySpan<T0> private_info, [Flow(FlowDirection.In)] nuint cb, [Flow(FlowDirection.Out)] void* user_data) where T0 : unmanaged
{
// SpanOverloader
thisApi.LogMessagesToStdout(errstr, in private_info.GetPinnableReference(), cb, user_data);
}
19
Source : AppleContextLoggingFunctionsOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe void LogMessagesToStdout<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.LogMessagesToStdout(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 LogMessagesToSystemLog<T0>(this AppleContextLoggingFunctions thisApi, [Flow(FlowDirection.In)] byte* errstr, [Flow(FlowDirection.In)] ReadOnlySpan<T0> private_info, [Flow(FlowDirection.In)] nuint cb, [Flow(FlowDirection.Out)] void* user_data) where T0 : unmanaged
{
// SpanOverloader
thisApi.LogMessagesToSystemLog(errstr, in private_info.GetPinnableReference(), cb, user_data);
}
19
Source : AppleContextLoggingFunctionsOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe void LogMessagesToSystemLog<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.LogMessagesToSystemLog(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 LogMessagesToSystemLog(this AppleContextLoggingFunctions thisApi, [Flow(FlowDirection.In)] ReadOnlySpan<byte> errstr, [Flow(FlowDirection.In)] void* private_info, [Flow(FlowDirection.In)] nuint cb, [Flow(FlowDirection.Out)] void* user_data)
{
// SpanOverloader
thisApi.LogMessagesToSystemLog(in errstr.GetPinnableReference(), private_info, cb, user_data);
}
19
Source : AppleContextLoggingFunctionsOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe void LogMessagesToSystemLog<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.LogMessagesToSystemLog(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 LogMessagesToSystemLog<T0>(this AppleContextLoggingFunctions thisApi, [Flow(FlowDirection.In)] ReadOnlySpan<byte> errstr, [Flow(FlowDirection.In)] ReadOnlySpan<T0> private_info, [Flow(FlowDirection.In)] nuint cb, [Flow(FlowDirection.Out)] void* user_data) where T0 : unmanaged
{
// SpanOverloader
thisApi.LogMessagesToSystemLog(in errstr.GetPinnableReference(), in private_info.GetPinnableReference(), cb, user_data);
}
19
Source : AppleContextLoggingFunctionsOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe void LogMessagesToSystemLog<T0, T1>(this AppleContextLoggingFunctions thisApi, [Flow(FlowDirection.In)] ReadOnlySpan<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.LogMessagesToSystemLog(in errstr.GetPinnableReference(), in private_info.GetPinnableReference(), cb, out user_data.GetPinnableReference());
}
19
Source : ArmImportMemoryOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe nint ImportMemory<T0>(this ArmImportMemory thisApi, [Flow(FlowDirection.In)] nint context, [Flow(FlowDirection.In)] ARM flags, [Flow(FlowDirection.In)] ReadOnlySpan<nint> properties, [Flow(FlowDirection.Out)] Span<T0> memory, [Flow(FlowDirection.In)] nuint size, [Flow(FlowDirection.Out)] Span<int> errcode_ret) where T0 : unmanaged
{
// SpanOverloader
return thisApi.ImportMemory(context, flags, in properties.GetPinnableReference(), out memory.GetPinnableReference(), size, out errcode_ret.GetPinnableReference());
}
19
Source : ArmSharedVirtualMemoryOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe int EnqueueSvmfree<T0, T1>(this ArmSharedVirtualMemory thisApi, [Flow(FlowDirection.In)] nint command_queue, [Flow(FlowDirection.In)] uint num_svm_pointers, [Flow(FlowDirection.Out)] Span<T0> svm_pointers, [Flow(FlowDirection.In), PinObjectAttribute(PinMode.UntilNextCall)] FreeCallback pfn_free_func, [Flow(FlowDirection.Out)] Span<T1> user_data, [Flow(FlowDirection.In)] uint num_events_in_wait_list, [Flow(FlowDirection.In)] ReadOnlySpan<nint> event_wait_list, [Flow(FlowDirection.Out)] nint* @event) where T0 : unmanaged where T1 : unmanaged
{
// SpanOverloader
return thisApi.EnqueueSvmfree(command_queue, num_svm_pointers, out svm_pointers.GetPinnableReference(), pfn_free_func, out user_data.GetPinnableReference(), num_events_in_wait_list, in event_wait_list.GetPinnableReference(), @event);
}
19
Source : ArmSharedVirtualMemoryOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe int EnqueueSvmmap(this ArmSharedVirtualMemory thisApi, [Flow(FlowDirection.In)] nint command_queue, [Flow(FlowDirection.In)] bool blocking_map, [Flow(FlowDirection.In)] ARM flags, [Flow(FlowDirection.Out)] void* svm_ptr, [Flow(FlowDirection.In)] nuint size, [Flow(FlowDirection.In)] uint num_events_in_wait_list, [Flow(FlowDirection.In)] ReadOnlySpan<nint> event_wait_list, [Flow(FlowDirection.Out)] nint* @event)
{
// SpanOverloader
return thisApi.EnqueueSvmmap(command_queue, blocking_map, flags, svm_ptr, size, num_events_in_wait_list, in event_wait_list.GetPinnableReference(), @event);
}
19
Source : ArmSharedVirtualMemoryOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe int EnqueueSvmmemcpy(this ArmSharedVirtualMemory thisApi, [Flow(FlowDirection.In)] nint command_queue, [Flow(FlowDirection.In)] bool blocking_copy, [Flow(FlowDirection.Out)] void* dst_ptr, [Flow(FlowDirection.In)] void* src_ptr, [Flow(FlowDirection.In)] nuint size, [Flow(FlowDirection.In)] uint num_events_in_wait_list, [Flow(FlowDirection.In)] ReadOnlySpan<nint> event_wait_list, [Flow(FlowDirection.Out)] nint* @event)
{
// SpanOverloader
return thisApi.EnqueueSvmmemcpy(command_queue, blocking_copy, dst_ptr, src_ptr, size, num_events_in_wait_list, in event_wait_list.GetPinnableReference(), @event);
}
19
Source : ArmSharedVirtualMemoryOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe int EnqueueSvmmemcpy(this ArmSharedVirtualMemory thisApi, [Flow(FlowDirection.In)] nint command_queue, [Flow(FlowDirection.In)] bool blocking_copy, [Flow(FlowDirection.Out)] void* dst_ptr, [Flow(FlowDirection.In)] void* src_ptr, [Flow(FlowDirection.In)] nuint size, [Flow(FlowDirection.In)] uint num_events_in_wait_list, [Flow(FlowDirection.In)] ReadOnlySpan<nint> event_wait_list, [Flow(FlowDirection.Out)] Span<nint> @event)
{
// SpanOverloader
return thisApi.EnqueueSvmmemcpy(command_queue, blocking_copy, dst_ptr, src_ptr, size, num_events_in_wait_list, in event_wait_list.GetPinnableReference(), out @event.GetPinnableReference());
}
19
Source : ArmSharedVirtualMemoryOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe int EnqueueSvmmemcpy<T0>(this ArmSharedVirtualMemory thisApi, [Flow(FlowDirection.In)] nint command_queue, [Flow(FlowDirection.In)] bool blocking_copy, [Flow(FlowDirection.Out)] void* dst_ptr, [Flow(FlowDirection.In)] ReadOnlySpan<T0> src_ptr, [Flow(FlowDirection.In)] nuint size, [Flow(FlowDirection.In)] uint num_events_in_wait_list, [Flow(FlowDirection.In)] ReadOnlySpan<nint> event_wait_list, [Flow(FlowDirection.Out)] nint* @event) where T0 : unmanaged
{
// SpanOverloader
return thisApi.EnqueueSvmmemcpy(command_queue, blocking_copy, dst_ptr, in src_ptr.GetPinnableReference(), size, num_events_in_wait_list, in event_wait_list.GetPinnableReference(), @event);
}
19
Source : ArmSharedVirtualMemoryOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe int EnqueueSvmmemcpy<T0>(this ArmSharedVirtualMemory thisApi, [Flow(FlowDirection.In)] nint command_queue, [Flow(FlowDirection.In)] bool blocking_copy, [Flow(FlowDirection.Out)] Span<T0> dst_ptr, [Flow(FlowDirection.In)] void* src_ptr, [Flow(FlowDirection.In)] nuint size, [Flow(FlowDirection.In)] uint num_events_in_wait_list, [Flow(FlowDirection.In)] ReadOnlySpan<nint> event_wait_list, [Flow(FlowDirection.Out)] nint* @event) where T0 : unmanaged
{
// SpanOverloader
return thisApi.EnqueueSvmmemcpy(command_queue, blocking_copy, out dst_ptr.GetPinnableReference(), src_ptr, size, num_events_in_wait_list, in event_wait_list.GetPinnableReference(), @event);
}
19
Source : ArmSharedVirtualMemoryOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe int EnqueueSvmmemcpy<T0>(this ArmSharedVirtualMemory thisApi, [Flow(FlowDirection.In)] nint command_queue, [Flow(FlowDirection.In)] bool blocking_copy, [Flow(FlowDirection.Out)] Span<T0> dst_ptr, [Flow(FlowDirection.In)] void* src_ptr, [Flow(FlowDirection.In)] nuint size, [Flow(FlowDirection.In)] uint num_events_in_wait_list, [Flow(FlowDirection.In)] ReadOnlySpan<nint> event_wait_list, [Flow(FlowDirection.Out)] Span<nint> @event) where T0 : unmanaged
{
// SpanOverloader
return thisApi.EnqueueSvmmemcpy(command_queue, blocking_copy, out dst_ptr.GetPinnableReference(), src_ptr, size, num_events_in_wait_list, in event_wait_list.GetPinnableReference(), out @event.GetPinnableReference());
}
19
Source : ArmSharedVirtualMemoryOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe int EnqueueSvmmemFill<T0, T1>(this ArmSharedVirtualMemory thisApi, [Flow(FlowDirection.In)] nint command_queue, [Flow(FlowDirection.Out)] Span<T0> svm_ptr, [Flow(FlowDirection.In)] ReadOnlySpan<T1> pattern, [Flow(FlowDirection.In)] nuint pattern_size, [Flow(FlowDirection.In)] nuint size, [Flow(FlowDirection.In)] uint num_events_in_wait_list, [Flow(FlowDirection.In)] nint* event_wait_list, [Flow(FlowDirection.Out)] nint* @event) where T0 : unmanaged where T1 : unmanaged
{
// SpanOverloader
return thisApi.EnqueueSvmmemFill(command_queue, out svm_ptr.GetPinnableReference(), in pattern.GetPinnableReference(), pattern_size, size, num_events_in_wait_list, event_wait_list, @event);
}
19
Source : ArmSharedVirtualMemoryOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe int EnqueueSvmmemFill<T0, T1>(this ArmSharedVirtualMemory thisApi, [Flow(FlowDirection.In)] nint command_queue, [Flow(FlowDirection.Out)] Span<T0> svm_ptr, [Flow(FlowDirection.In)] ReadOnlySpan<T1> pattern, [Flow(FlowDirection.In)] nuint pattern_size, [Flow(FlowDirection.In)] nuint size, [Flow(FlowDirection.In)] uint num_events_in_wait_list, [Flow(FlowDirection.In)] ReadOnlySpan<nint> event_wait_list, [Flow(FlowDirection.Out)] nint* @event) where T0 : unmanaged where T1 : unmanaged
{
// SpanOverloader
return thisApi.EnqueueSvmmemFill(command_queue, out svm_ptr.GetPinnableReference(), in pattern.GetPinnableReference(), pattern_size, size, num_events_in_wait_list, in event_wait_list.GetPinnableReference(), @event);
}
19
Source : ArmSharedVirtualMemoryOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe int EnqueueSvmunmap(this ArmSharedVirtualMemory thisApi, [Flow(FlowDirection.In)] nint command_queue, [Flow(FlowDirection.Out)] void* svm_ptr, [Flow(FlowDirection.In)] uint num_events_in_wait_list, [Flow(FlowDirection.In)] ReadOnlySpan<nint> event_wait_list, [Flow(FlowDirection.Out)] nint* @event)
{
// SpanOverloader
return thisApi.EnqueueSvmunmap(command_queue, svm_ptr, num_events_in_wait_list, in event_wait_list.GetPinnableReference(), @event);
}
19
Source : ArmSharedVirtualMemoryOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe int EnqueueSvmunmap(this ArmSharedVirtualMemory thisApi, [Flow(FlowDirection.In)] nint command_queue, [Flow(FlowDirection.Out)] void* svm_ptr, [Flow(FlowDirection.In)] uint num_events_in_wait_list, [Flow(FlowDirection.In)] ReadOnlySpan<nint> event_wait_list, [Flow(FlowDirection.Out)] Span<nint> @event)
{
// SpanOverloader
return thisApi.EnqueueSvmunmap(command_queue, svm_ptr, num_events_in_wait_list, in event_wait_list.GetPinnableReference(), out @event.GetPinnableReference());
}
19
Source : ArmSharedVirtualMemoryOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe int SetKernelArgSvmpointer<T0>(this ArmSharedVirtualMemory thisApi, [Flow(FlowDirection.In)] nint kernel, [Flow(FlowDirection.In)] uint arg_index, [Flow(FlowDirection.In)] ReadOnlySpan<T0> arg_value) where T0 : unmanaged
{
// SpanOverloader
return thisApi.SetKernelArgSvmpointer(kernel, arg_index, in arg_value.GetPinnableReference());
}
19
Source : ExtDeviceFissionOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe int CreateSubDevices(this ExtDeviceFission thisApi, [Flow(FlowDirection.In)] nint in_device, [Flow(FlowDirection.In)] ReadOnlySpan<ulong> properties, [Flow(FlowDirection.In)] uint num_entries, [Flow(FlowDirection.Out)] Span<nint> out_devices, [Flow(FlowDirection.Out)] uint* num_devices)
{
// SpanOverloader
return thisApi.CreateSubDevices(in_device, in properties.GetPinnableReference(), num_entries, out out_devices.GetPinnableReference(), num_devices);
}
19
Source : ExtMigrateMemobjectOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe int EnqueueMigrateMemObject(this ExtMigrateMemobject thisApi, [Flow(FlowDirection.In)] nint command_queue, [Flow(FlowDirection.In)] uint num_mem_objects, [Flow(FlowDirection.In)] ReadOnlySpan<nint> mem_objects, [Flow(FlowDirection.In)] EXT flags, [Flow(FlowDirection.In)] uint num_events_in_wait_list, [Flow(FlowDirection.In)] ReadOnlySpan<nint> event_wait_list, [Flow(FlowDirection.Out)] nint* @event)
{
// SpanOverloader
return thisApi.EnqueueMigrateMemObject(command_queue, num_mem_objects, in mem_objects.GetPinnableReference(), flags, num_events_in_wait_list, in event_wait_list.GetPinnableReference(), @event);
}
19
Source : ImgGenerateMipmapOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe int EnqueueGenerateMipmap(this ImgGenerateMipmap thisApi, [Flow(FlowDirection.In)] nint command_queue, [Flow(FlowDirection.In)] nint src_image, [Flow(FlowDirection.In)] nint dst_image, [Flow(FlowDirection.In)] IMG mipmap_filter_mode, [Flow(FlowDirection.In)] nuint* array_region, [Flow(FlowDirection.In)] ReadOnlySpan<nuint> mip_region, [Flow(FlowDirection.In)] uint num_events_in_wait_list, [Flow(FlowDirection.In)] ReadOnlySpan<nint> event_wait_list, [Flow(FlowDirection.Out)] Span<nint> @event)
{
// SpanOverloader
return thisApi.EnqueueGenerateMipmap(command_queue, src_image, dst_image, mipmap_filter_mode, array_region, in mip_region.GetPinnableReference(), num_events_in_wait_list, in event_wait_list.GetPinnableReference(), out @event.GetPinnableReference());
}
19
Source : ImgGenerateMipmapOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe int EnqueueGenerateMipmap(this ImgGenerateMipmap thisApi, [Flow(FlowDirection.In)] nint command_queue, [Flow(FlowDirection.In)] nint src_image, [Flow(FlowDirection.In)] nint dst_image, [Flow(FlowDirection.In)] IMG mipmap_filter_mode, [Flow(FlowDirection.In)] ReadOnlySpan<nuint> array_region, [Flow(FlowDirection.In)] nuint* mip_region, [Flow(FlowDirection.In)] uint num_events_in_wait_list, [Flow(FlowDirection.In)] nint* event_wait_list, [Flow(FlowDirection.Out)] nint* @event)
{
// SpanOverloader
return thisApi.EnqueueGenerateMipmap(command_queue, src_image, dst_image, mipmap_filter_mode, in array_region.GetPinnableReference(), mip_region, num_events_in_wait_list, event_wait_list, @event);
}
19
Source : ImgGenerateMipmapOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe int EnqueueGenerateMipmap(this ImgGenerateMipmap thisApi, [Flow(FlowDirection.In)] nint command_queue, [Flow(FlowDirection.In)] nint src_image, [Flow(FlowDirection.In)] nint dst_image, [Flow(FlowDirection.In)] IMG mipmap_filter_mode, [Flow(FlowDirection.In)] ReadOnlySpan<nuint> array_region, [Flow(FlowDirection.In)] nuint* mip_region, [Flow(FlowDirection.In)] uint num_events_in_wait_list, [Flow(FlowDirection.In)] nint* event_wait_list, [Flow(FlowDirection.Out)] Span<nint> @event)
{
// SpanOverloader
return thisApi.EnqueueGenerateMipmap(command_queue, src_image, dst_image, mipmap_filter_mode, in array_region.GetPinnableReference(), mip_region, num_events_in_wait_list, event_wait_list, out @event.GetPinnableReference());
}
19
Source : ImgGenerateMipmapOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe int EnqueueGenerateMipmap(this ImgGenerateMipmap thisApi, [Flow(FlowDirection.In)] nint command_queue, [Flow(FlowDirection.In)] nint src_image, [Flow(FlowDirection.In)] nint dst_image, [Flow(FlowDirection.In)] IMG mipmap_filter_mode, [Flow(FlowDirection.In)] ReadOnlySpan<nuint> array_region, [Flow(FlowDirection.In)] nuint* mip_region, [Flow(FlowDirection.In)] uint num_events_in_wait_list, [Flow(FlowDirection.In)] ReadOnlySpan<nint> event_wait_list, [Flow(FlowDirection.Out)] nint* @event)
{
// SpanOverloader
return thisApi.EnqueueGenerateMipmap(command_queue, src_image, dst_image, mipmap_filter_mode, in array_region.GetPinnableReference(), mip_region, num_events_in_wait_list, in event_wait_list.GetPinnableReference(), @event);
}
19
Source : ImgGenerateMipmapOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe int EnqueueGenerateMipmap(this ImgGenerateMipmap thisApi, [Flow(FlowDirection.In)] nint command_queue, [Flow(FlowDirection.In)] nint src_image, [Flow(FlowDirection.In)] nint dst_image, [Flow(FlowDirection.In)] IMG mipmap_filter_mode, [Flow(FlowDirection.In)] ReadOnlySpan<nuint> array_region, [Flow(FlowDirection.In)] nuint* mip_region, [Flow(FlowDirection.In)] uint num_events_in_wait_list, [Flow(FlowDirection.In)] ReadOnlySpan<nint> event_wait_list, [Flow(FlowDirection.Out)] Span<nint> @event)
{
// SpanOverloader
return thisApi.EnqueueGenerateMipmap(command_queue, src_image, dst_image, mipmap_filter_mode, in array_region.GetPinnableReference(), mip_region, num_events_in_wait_list, in event_wait_list.GetPinnableReference(), out @event.GetPinnableReference());
}
19
Source : ImgGenerateMipmapOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe int EnqueueGenerateMipmap(this ImgGenerateMipmap thisApi, [Flow(FlowDirection.In)] nint command_queue, [Flow(FlowDirection.In)] nint src_image, [Flow(FlowDirection.In)] nint dst_image, [Flow(FlowDirection.In)] IMG mipmap_filter_mode, [Flow(FlowDirection.In)] ReadOnlySpan<nuint> array_region, [Flow(FlowDirection.In)] ReadOnlySpan<nuint> mip_region, [Flow(FlowDirection.In)] uint num_events_in_wait_list, [Flow(FlowDirection.In)] ReadOnlySpan<nint> event_wait_list, [Flow(FlowDirection.Out)] nint* @event)
{
// SpanOverloader
return thisApi.EnqueueGenerateMipmap(command_queue, src_image, dst_image, mipmap_filter_mode, in array_region.GetPinnableReference(), in mip_region.GetPinnableReference(), num_events_in_wait_list, in event_wait_list.GetPinnableReference(), @event);
}
19
Source : ImgGenerateMipmapOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe int EnqueueGenerateMipmap(this ImgGenerateMipmap thisApi, [Flow(FlowDirection.In)] nint command_queue, [Flow(FlowDirection.In)] nint src_image, [Flow(FlowDirection.In)] nint dst_image, [Flow(FlowDirection.In)] IMG mipmap_filter_mode, [Flow(FlowDirection.In)] ReadOnlySpan<nuint> array_region, [Flow(FlowDirection.In)] ReadOnlySpan<nuint> mip_region, [Flow(FlowDirection.In)] uint num_events_in_wait_list, [Flow(FlowDirection.In)] ReadOnlySpan<nint> event_wait_list, [Flow(FlowDirection.Out)] Span<nint> @event)
{
// SpanOverloader
return thisApi.EnqueueGenerateMipmap(command_queue, src_image, dst_image, mipmap_filter_mode, in array_region.GetPinnableReference(), in mip_region.GetPinnableReference(), num_events_in_wait_list, in event_wait_list.GetPinnableReference(), out @event.GetPinnableReference());
}
19
Source : ImgUseGrallocPtrOverloads.gen.cs
with MIT License
from dotnet
with MIT License
from dotnet
public static unsafe int EnqueueReleaseGrallocObjects(this ImgUseGrallocPtr thisApi, [Flow(FlowDirection.In)] nint command_queue, [Flow(FlowDirection.In)] uint num_objects, [Flow(FlowDirection.In)] ReadOnlySpan<nint> mem_objects, [Flow(FlowDirection.In)] uint num_events_in_wait_list, [Flow(FlowDirection.In)] ReadOnlySpan<nint> event_wait_list, [Flow(FlowDirection.Out)] nint* @event)
{
// SpanOverloader
return thisApi.EnqueueReleaseGrallocObjects(command_queue, num_objects, in mem_objects.GetPinnableReference(), num_events_in_wait_list, in event_wait_list.GetPinnableReference(), @event);
}
See More Examples