SafeBuffer.WriteSpan<T>(UInt64, ReadOnlySpan<T>) Method

Definition

Important

This API is not CLS-compliant.

Writes the value types from a read-only span to a memory location.

C#
[System.CLSCompliant(false)]
public void WriteSpan<T>(ulong byteOffset, ReadOnlySpan<T> data) where T : struct;

Type Parameters

T

The value type to write.

Parameters

byteOffset
UInt64

The location in memory to write to.

data
ReadOnlySpan<T>

The input span.

Attributes

Applies to

Product Versions
.NET 6, 7, 8, 9, 10