コード例 #1
0
 public static unsafe void MemoryObjectParameter(this ExtMemoryObject thisApi, [Flow(FlowDirection.In)] uint memoryObject, [Flow(FlowDirection.In)] MemoryObjectParameterName pname, [Flow(FlowDirection.In)] ReadOnlySpan <int> @params)
 {
     // SpanOverloader
     thisApi.MemoryObjectParameter(memoryObject, pname, in @params.GetPinnableReference());
 }
コード例 #2
0
 public static unsafe void GetUnsignedByte(this ExtMemoryObject thisApi, [Flow(FlowDirection.In)] EXT target, [Flow(FlowDirection.In)] uint index, [Count(Computed = "target"), Flow(FlowDirection.Out)] Span <byte> data)
 {
     // SpanOverloader
     thisApi.GetUnsignedByte(target, index, out data.GetPinnableReference());
 }
コード例 #3
0
 public static unsafe void GetUnsignedByte(this ExtMemoryObject thisApi, [Flow(FlowDirection.In)] GetPName pname, [Count(Computed = "pname"), Flow(FlowDirection.Out)] Span <byte> data)
 {
     // SpanOverloader
     thisApi.GetUnsignedByte(pname, out data.GetPinnableReference());
 }
コード例 #4
0
 public static unsafe void GetMemoryObjectParameter(this ExtMemoryObject thisApi, [Flow(FlowDirection.In)] uint memoryObject, [Flow(FlowDirection.In)] EXT pname, [Flow(FlowDirection.Out)] Span <int> @params)
 {
     // SpanOverloader
     thisApi.GetMemoryObjectParameter(memoryObject, pname, out @params.GetPinnableReference());
 }
コード例 #5
0
 public static unsafe void DeleteMemoryObjects(this ExtMemoryObject thisApi, [Flow(FlowDirection.In)] uint n, [Count(Parameter = "n"), Flow(FlowDirection.In)] ReadOnlySpan <uint> memoryObjects)
 {
     // SpanOverloader
     thisApi.DeleteMemoryObjects(n, in memoryObjects.GetPinnableReference());
 }
コード例 #6
0
 public static unsafe void CreateMemoryObjects(this ExtMemoryObject thisApi, [Flow(FlowDirection.In)] uint n, [Flow(FlowDirection.Out)] Span <uint> memoryObjects)
 {
     // SpanOverloader
     thisApi.CreateMemoryObjects(n, out memoryObjects.GetPinnableReference());
 }