BlobReader.ReadBytes Method

Definition

Overloads

ReadBytes(Int32, Byte[], Int32)

Reads bytes starting at the current position and writes them to the specified buffer starting at the specified offset.

ReadBytes(Int32)

Reads bytes starting at the current position.

ReadBytes(Int32, Byte[], Int32)

Source:
BlobReader.cs
Source:
BlobReader.cs
Source:
BlobReader.cs
Source:
BlobReader.cs

Reads bytes starting at the current position and writes them to the specified buffer starting at the specified offset.

C#
public void ReadBytes(int byteCount, byte[] buffer, int bufferOffset);

Parameters

byteCount
Int32

The number of bytes to read.

buffer
Byte[]

The destination buffer the bytes read will be written to.

bufferOffset
Int32

The offset in the destination buffer where the bytes read will be written.

Exceptions

byteCount bytes not available.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

ReadBytes(Int32)

Source:
BlobReader.cs
Source:
BlobReader.cs
Source:
BlobReader.cs
Source:
BlobReader.cs

Reads bytes starting at the current position.

C#
public byte[] ReadBytes(int byteCount);

Parameters

byteCount
Int32

The number of bytes to read.

Returns

Byte[]

The byte array.

Exceptions

byteCount bytes not available.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)
UWP 10.0