SequenceMarshal SequenceMarshal SequenceMarshal SequenceMarshal Class

定義

ReadOnlySequence<T> と相互運用するためのメソッドのコレクションを提供します。Provides a collection of methods for interoperating with ReadOnlySequence<T>.

public ref class SequenceMarshal abstract sealed
public static class SequenceMarshal
type SequenceMarshal = class
Public Class SequenceMarshal
継承
SequenceMarshalSequenceMarshalSequenceMarshalSequenceMarshal

メソッド

TryGetArray<T>(ReadOnlySequence<T>, ArraySegment<T>) TryGetArray<T>(ReadOnlySequence<T>, ArraySegment<T>) TryGetArray<T>(ReadOnlySequence<T>, ArraySegment<T>) TryGetArray<T>(ReadOnlySequence<T>, ArraySegment<T>)

基になる読み取り専用シーケンスから配列セグメントを取得します。Gets an array segment from the underlying read-only sequence.

TryGetReadOnlyMemory<T>(ReadOnlySequence<T>, ReadOnlyMemory<T>) TryGetReadOnlyMemory<T>(ReadOnlySequence<T>, ReadOnlyMemory<T>) TryGetReadOnlyMemory<T>(ReadOnlySequence<T>, ReadOnlyMemory<T>) TryGetReadOnlyMemory<T>(ReadOnlySequence<T>, ReadOnlyMemory<T>)

指定した読み取り専用シーケンスから読み取り専用メモリの取得を試みます。Attempts to retrieve a read-only memory from the specified read-only sequence.

TryGetReadOnlySequenceSegment<T>(ReadOnlySequence<T>, ReadOnlySequenceSegment<T>, Int32, ReadOnlySequenceSegment<T>, Int32) TryGetReadOnlySequenceSegment<T>(ReadOnlySequence<T>, ReadOnlySequenceSegment<T>, Int32, ReadOnlySequenceSegment<T>, Int32) TryGetReadOnlySequenceSegment<T>(ReadOnlySequence<T>, ReadOnlySequenceSegment<T>, Int32, ReadOnlySequenceSegment<T>, Int32) TryGetReadOnlySequenceSegment<T>(ReadOnlySequence<T>, ReadOnlySequenceSegment<T>, Int32, ReadOnlySequenceSegment<T>, Int32)

指定した読み取り専用シーケンスから読み取り専用シーケンス セグメントの取得を試みます。Attempts to retrieve a read-only sequence segment from the specified read-only sequence.

TryRead<T>(SequenceReader<Byte>, T) TryRead<T>(SequenceReader<Byte>, T) TryRead<T>(SequenceReader<Byte>, T) TryRead<T>(SequenceReader<Byte>, T)

バッファーから指定された型の読み取りを試みます。Attempts to read the specified type out of the buffer. このメソッドを任意の構造体で使用するのは危険です。詳細については、注釈を参照してください。It's dangerous to use this method with arbitrary structs - see remarks for more information.

適用対象