mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
14 lines
308 B
C#
14 lines
308 B
C#
using Iced.Intel;
|
|
|
|
namespace Penumbra.Interop.Hooks.ResourceLoading;
|
|
|
|
public class MappedCodeReader(UnmanagedMemoryAccessor data, long offset) : CodeReader
|
|
{
|
|
public override int ReadByte()
|
|
{
|
|
if (offset >= data.Capacity)
|
|
return -1;
|
|
|
|
return data.ReadByte(offset++);
|
|
}
|
|
}
|