internal uint AddCode(CILInstructions byteCode) { byteCodes.Add(byteCode); uint offset = codeSize + codeStart; codeSize += byteCode.GetCodeSize(); return offset; }
/// <summary> /// Create a code buffer for this method to add the IL instructions to /// </summary> /// <returns>a buffer for this method's IL instructions</returns> public CILInstructions CreateCodeBuffer() { code = new CILInstructions(metaData); return code; }