Esempio n. 1
0
        internal static uint Write(object argument, IDefinitionWriter writer)
        {
            var instance   = (VirtualFunc)argument;
            var jumpOffset = instance.JumpOffset;

            jumpOffset -= 1 + 2; // make relative to the jump offset
            writer.WriteValueS16(jumpOffset);
            writer.WriteValueU16(instance.SourceLine);
            writer.WriteName(instance.Function);
            return(12);
        }
Esempio n. 2
0
 public static uint Write(object argument, IDefinitionWriter writer)
 {
     writer.WriteName((string)argument);
     return(8);
 }