public override void Write(JavaWriter wtr) { wtr.Where.Push(tag); wtr.Write16(wtr.ConstUtf8(tag)); wtr.Fork(); wtr.Write16(maxStack); wtr.Write16(maxLocals); wtr.Write32((uint)code.Length); wtr.WriteBlock(code); if (exceptions == null) { wtr.Write16(0); } else { wtr.Write16(exceptions.Length); for (int i = 0; i < exceptions.Length; i++) { wtr.Write16(exceptions[i].start); wtr.Write16(exceptions[i].endPlus1); wtr.Write16(exceptions[i].handler); wtr.Write16((exceptions[i].catchType == null) ? 0 : wtr.ConstClass(exceptions[i].catchType)); } } attributes.Write(wtr); wtr.Join(); wtr.Where.Pop(); }
public override void Write(JavaWriter wtr) { var blk = BitConverter.GetBytes(value); if (BitConverter.IsLittleEndian) { Array.Reverse(blk); } wtr.Write8(tag); wtr.WriteBlock(blk); }
public override void Write(JavaWriter wtr) { Write(wtr, name, data.Length); wtr.WriteBlock(data); }