cecil
cecil copied to clipboard
Provide API to read and write raw method bodies
We need an API to parse and emit code without creating costly Instruction instances.
For the reading part, we would move the ILParse functionality from Cecil.Rocks to Cecil. For the writing part, we would need a context to store the operands to be mapped to actual tokens.
Any news on this?
I find myself needing this for an experimental custom IL I'm working on. Modifying all of Cecil to support it would be a bit much since all I really need is just to be able to emit raw bytes, tokens, constants, etc into the IL stream.
@jbevain is this just a performance/syntax improvement?
@alexrp i think you can do all those things now. What exactly dont you think is possible?
@jbevain is this just a performance/syntax improvement?
No. It is about stuff like .emitbyte in ILAsm.
@alexrp i think you can do all those things now. What exactly dont you think is possible?
I see no methods anywhere that allow me to write arbitrary data into the IL stream.