cecil icon indicating copy to clipboard operation
cecil copied to clipboard

Provide API to read and write raw method bodies

Open jbevain opened this issue 14 years ago • 3 comments

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.

jbevain avatar Dec 04 '10 15:12 jbevain

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.

alexrp avatar Mar 23 '14 21:03 alexrp

@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?

SimonCropp avatar Mar 23 '14 23:03 SimonCropp

@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.

alexrp avatar Mar 24 '14 00:03 alexrp