Reader.Create 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Create(PooledBuffer, SerializerSession) |
建立所提供緩衝區的讀取器。 |
Create(PooledBuffer+BufferSlice, SerializerSession) |
建立所提供緩衝區的讀取器。 |
Create(ReadOnlySequence<Byte>, SerializerSession) |
建立所提供緩衝區的讀取器。 |
Create(Byte[], SerializerSession) |
建立所提供緩衝區的讀取器。 |
Create(Stream, SerializerSession) |
建立所提供輸入數據流的讀取器。 |
Create(ReadOnlyMemory<Byte>, SerializerSession) |
建立所提供緩衝區的讀取器。 |
Create(ReadOnlySpan<Byte>, SerializerSession) |
建立所提供緩衝區的讀取器。 |
Create(PooledBuffer, SerializerSession)
建立所提供緩衝區的讀取器。
public static Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.Adaptors.BufferSliceReaderInput> Create (Orleans.Serialization.Buffers.PooledBuffer input, Orleans.Serialization.Session.SerializerSession session);
static member Create : Orleans.Serialization.Buffers.PooledBuffer * Orleans.Serialization.Session.SerializerSession -> Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.Adaptors.BufferSliceReaderInput>
Public Shared Function Create (input As PooledBuffer, session As SerializerSession) As Reader(Of BufferSliceReaderInput)
參數
- input
- PooledBuffer
輸入。
- session
- SerializerSession
會話。
傳回
新的 Reader<TInput>。
適用於
Create(PooledBuffer+BufferSlice, SerializerSession)
建立所提供緩衝區的讀取器。
public static Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.Adaptors.BufferSliceReaderInput> Create (Orleans.Serialization.Buffers.PooledBuffer.BufferSlice input, Orleans.Serialization.Session.SerializerSession session);
static member Create : Orleans.Serialization.Buffers.PooledBuffer.BufferSlice * Orleans.Serialization.Session.SerializerSession -> Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.Adaptors.BufferSliceReaderInput>
Public Shared Function Create (input As PooledBuffer.BufferSlice, session As SerializerSession) As Reader(Of BufferSliceReaderInput)
參數
- input
- PooledBuffer.BufferSlice
輸入。
- session
- SerializerSession
會話。
傳回
新的 Reader<TInput>。
適用於
Create(ReadOnlySequence<Byte>, SerializerSession)
建立所提供緩衝區的讀取器。
public static Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.ReadOnlySequenceInput> Create (System.Buffers.ReadOnlySequence<byte> sequence, Orleans.Serialization.Session.SerializerSession session);
static member Create : System.Buffers.ReadOnlySequence<byte> * Orleans.Serialization.Session.SerializerSession -> Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.ReadOnlySequenceInput>
Public Shared Function Create (sequence As ReadOnlySequence(Of Byte), session As SerializerSession) As Reader(Of ReadOnlySequenceInput)
參數
- sequence
- ReadOnlySequence<Byte>
緩衝區。
- session
- SerializerSession
會話。
傳回
新的 Reader<TInput>。
適用於
Create(Byte[], SerializerSession)
建立所提供緩衝區的讀取器。
public static Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.SpanReaderInput> Create (byte[] buffer, Orleans.Serialization.Session.SerializerSession session);
static member Create : byte[] * Orleans.Serialization.Session.SerializerSession -> Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.SpanReaderInput>
Public Shared Function Create (buffer As Byte(), session As SerializerSession) As Reader(Of SpanReaderInput)
參數
- buffer
- Byte[]
緩衝區。
- session
- SerializerSession
會話。
傳回
新的 Reader<TInput>。
適用於
Create(Stream, SerializerSession)
建立所提供輸入數據流的讀取器。
public static Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.ReaderInput> Create (System.IO.Stream stream, Orleans.Serialization.Session.SerializerSession session);
static member Create : System.IO.Stream * Orleans.Serialization.Session.SerializerSession -> Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.ReaderInput>
Public Shared Function Create (stream As Stream, session As SerializerSession) As Reader(Of ReaderInput)
參數
- stream
- Stream
資料流。
- session
- SerializerSession
會話。
傳回
新的 Reader<TInput>。
適用於
Create(ReadOnlyMemory<Byte>, SerializerSession)
建立所提供緩衝區的讀取器。
public static Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.SpanReaderInput> Create (ReadOnlyMemory<byte> buffer, Orleans.Serialization.Session.SerializerSession session);
static member Create : ReadOnlyMemory<byte> * Orleans.Serialization.Session.SerializerSession -> Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.SpanReaderInput>
Public Shared Function Create (buffer As ReadOnlyMemory(Of Byte), session As SerializerSession) As Reader(Of SpanReaderInput)
參數
- buffer
- ReadOnlyMemory<Byte>
緩衝區。
- session
- SerializerSession
會話。
傳回
新的 Reader<TInput>。
適用於
Create(ReadOnlySpan<Byte>, SerializerSession)
建立所提供緩衝區的讀取器。
public static Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.SpanReaderInput> Create (ReadOnlySpan<byte> buffer, Orleans.Serialization.Session.SerializerSession session);
static member Create : ReadOnlySpan<byte> * Orleans.Serialization.Session.SerializerSession -> Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.SpanReaderInput>
Public Shared Function Create (buffer As ReadOnlySpan(Of Byte), session As SerializerSession) As Reader(Of SpanReaderInput)
參數
- buffer
- ReadOnlySpan<Byte>
緩衝區。
- session
- SerializerSession
會話。
傳回
新的 Reader<TInput>。