SafeBuffer.ReadSpan<T>(UInt64, Span<T>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public:
generic <typename T>
where T : value class void ReadSpan(System::UInt64 byteOffset, Span<T> buffer);
[System.CLSCompliant(false)]
public void ReadSpan<T> (ulong byteOffset, Span<T> buffer) where T : struct;
[<System.CLSCompliant(false)>]
member this.ReadSpan : uint64 * Span<'T (requires 'T : struct)> -> unit (requires 'T : struct)
Public Sub ReadSpan(Of T As Structure) (byteOffset As ULong, buffer As Span(Of T))
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
Samarbejd med os på GitHub
Kilden til dette indhold kan findes på GitHub, hvor du også kan oprette og gennemse problemer og pullanmodninger. Du kan få flere oplysninger i vores vejledning til bidragydere.
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om