public void SetInstructions(CILInstruction[] insts)
{
if (inserting) throw new Exception("Cannot replace instructions during insert.");
buffer = insts;
tide = buffer.Length;
for (int i=0; i < tide; i++) {
if (insts[i] == null)
tide = i;
insts[i].index = (uint)i;
}
}