using System;
namespace Ryujinx.Graphics.Gpu.Shader.HashTable
{
///
/// Data accessor, used by to access data of unknown length.
///
///
/// This will be used to access chuncks of data and try finding a match on the table.
/// This is necessary because the data size is assumed to be unknown, and so the
/// hash table must try to "guess" the size of the data based on the entries on the table.
///
public interface IDataAccessor
{
///
/// Gets a span of shader code at the specified offset, with at most the specified size.
///
///
/// This might return a span smaller than the requested if there's
/// no more code available.
///
/// Offset in shader code
/// Size in bytes
/// Shader code span
ReadOnlySpan GetSpan(int offset, int length);
}
}