Table of Contents

Class DataSourceExtensions

Namespace
AsmResolver.IO
Assembly
AsmResolver.dll

Provides extension methods for IDataSource.

public static class DataSourceExtensions
Inheritance
DataSourceExtensions
Inherited Members

Methods

ReadBytes(IDataSource, ulong, Span<byte>)

Reads a block of data from the data source.

public static int ReadBytes(this IDataSource dataSource, ulong address, Span<byte> buffer)

Parameters

dataSource IDataSource

The IDataSource to read from.

address ulong

The starting address to read from.

buffer Span<byte>

The buffer that receives the read bytes.

Returns

int

The number of bytes that were read.