Edytuj

Udostępnij za pośrednictwem


Reader<TInput>.ReadBytes Method

Definition

Overloads

ReadBytes(Span<Byte>)

Fills destination with bytes read from the input.

ReadBytes(UInt32)

Reads an array of bytes from the input.

ReadBytes<TBufferWriter>(TBufferWriter, Int32)

Reads the specified number of bytes into the provided writer.

ReadBytes(Span<Byte>)

Fills destination with bytes read from the input.

public void ReadBytes (scoped Span<byte> destination);
member this.ReadBytes : Span<byte> -> unit
Public Sub ReadBytes (destination As Span(Of Byte))

Parameters

destination
Span<Byte>

The destination.

Applies to

ReadBytes(UInt32)

Reads an array of bytes from the input.

public byte[] ReadBytes (uint count);
member this.ReadBytes : uint32 -> byte[]
Public Function ReadBytes (count As UInteger) As Byte()

Parameters

count
UInt32

The length of the array to read.

Returns

Byte[]

The array wihch was read.

Applies to

ReadBytes<TBufferWriter>(TBufferWriter, Int32)

Reads the specified number of bytes into the provided writer.

public void ReadBytes<TBufferWriter> (scoped ref TBufferWriter writer, int count) where TBufferWriter : System.Buffers.IBufferWriter<byte>;
member this.ReadBytes : 'BufferWriter * int -> unit (requires 'BufferWriter :> System.Buffers.IBufferWriter<byte>)
Public Sub ReadBytes(Of TBufferWriter As IBufferWriter(Of Byte)) (ByRef writer As TBufferWriter, count As Integer)

Type Parameters

TBufferWriter

Parameters

writer
TBufferWriter
count
Int32

Applies to