mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-31 13:21:05 +00:00
23 lines
No EOL
625 B
C#
23 lines
No EOL
625 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace ReflectionToEcmaCil
|
|
{
|
|
public class ILStreamPositionReader
|
|
{
|
|
/// <summary>
|
|
/// .Key contains stream index, .Value contains instruction (logical) index
|
|
/// </summary>
|
|
public static IEnumerable<KeyValuePair<int, int>> GetIndexes(byte[] stream)
|
|
{
|
|
int xCurrentPosition = 0;
|
|
yield return new KeyValuePair<int, int>(0, 0);
|
|
while (xCurrentPosition < stream.Length)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|
|
} |