Provide API to read and write raw method bodies #46

Open
opened 2010-12-04 09:47:41 -06:00 by jbevain · 3 comments
jbevain commented 2010-12-04 09:47:41 -06:00 (Migrated from github.com)

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.

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.
alexrp commented 2014-03-23 16:37:09 -05:00 (Migrated from github.com)

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.

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.
SimonCropp commented 2014-03-23 18:16:51 -05:00 (Migrated from github.com)

@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? @alexrp i think you can do all those things now. What exactly dont you think is possible?
alexrp commented 2014-03-23 19:19:44 -05:00 (Migrated from github.com)

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

> @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.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-jbevain/cecil#46
No description provided.