Op Englesch liesen Editéieren

Deelen iwwer


PEMemoryBlock.GetContent Method

Definition

Overloads

GetContent()

Reads the contents of the entire block into an array.

GetContent(Int32, Int32)

Reads the contents of a part of the block into an array.

GetContent()

Source:
PEMemoryBlock.cs
Source:
PEMemoryBlock.cs
Source:
PEMemoryBlock.cs
Source:
PEMemoryBlock.cs

Reads the contents of the entire block into an array.

C#
public System.Collections.Immutable.ImmutableArray<byte> GetContent();

Returns

An immutable byte array.

Applies to

.NET 10 an aner Versiounen
Produkt Versiounen
.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

GetContent(Int32, Int32)

Source:
PEMemoryBlock.cs
Source:
PEMemoryBlock.cs
Source:
PEMemoryBlock.cs
Source:
PEMemoryBlock.cs

Reads the contents of a part of the block into an array.

C#
public System.Collections.Immutable.ImmutableArray<byte> GetContent(int start, int length);

Parameters

start
Int32

The starting position in the block.

length
Int32

The number of bytes to read.

Returns

An immutable array of bytes.

Exceptions

The specified range is not contained within the block.

Applies to

.NET 10 an aner Versiounen
Produkt Versiounen
.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)