SafeBuffer.ReadSpan<T>(UInt64, Span<T>) Method

Definition

Important

This API is not CLS-compliant.

Reads value types from memory starting at the offset, and writes them into a span. The number of value types that will be read is determined by the length of the span.

C#
[System.CLSCompliant(false)]
public void ReadSpan<T>(ulong byteOffset, Span<T> buffer) where T : struct;

Type Parameters

T

The value type to read.

Parameters

byteOffset
UInt64

The location from which to start reading.

buffer
Span<T>

The output span to write to.

Attributes

Applies to

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