@Override public ByteBuffer pack() { int __xjb_length = 3; __xjb_length += com.noodlewiz.xjavab.core.internal.Measurer.measurePad(1); __xjb_length += com.noodlewiz.xjavab.core.internal.Measurer.measureUInt(); __xjb_length += com.noodlewiz.xjavab.core.internal.Measurer.measureUInt(); __xjb_length += com.noodlewiz.xjavab.core.internal.Measurer.measureUByte(); __xjb_length += com.noodlewiz.xjavab.core.internal.Measurer.measureUByte(); __xjb_length += com.noodlewiz.xjavab.core.internal.Measurer.measurePad(2); for (com.noodlewiz.xjavab.core.xproto.Point __xjb_t : this.points) { __xjb_length += com.noodlewiz.xjavab.core.xproto.internal.Measurer.measure(__xjb_t); } __xjb_length += Util.padding(__xjb_length); final ByteBuffer __xjb_buf = ByteBuffer.allocate(__xjb_length); __xjb_buf.position(1); com.noodlewiz.xjavab.core.internal.Packer.packPad(__xjb_buf, 1); __xjb_buf.position(4); com.noodlewiz.xjavab.core.internal.Packer.packUInt(__xjb_buf, this.drawable); com.noodlewiz.xjavab.core.internal.Packer.packUInt(__xjb_buf, this.gc); com.noodlewiz.xjavab.core.internal.Packer.packUByte(__xjb_buf, this.shape); com.noodlewiz.xjavab.core.internal.Packer.packUByte(__xjb_buf, this.coordinateMode); com.noodlewiz.xjavab.core.internal.Packer.packPad(__xjb_buf, 2); for (com.noodlewiz.xjavab.core.xproto.Point __xjb_t : this.points) { com.noodlewiz.xjavab.core.xproto.internal.Packer.pack(__xjb_buf, __xjb_t); } return __xjb_buf; }
@Override public ByteBuffer pack() { int __xjb_length = 4; __xjb_length += com.noodlewiz.xjavab.core.internal.Measurer.measureUByte(); __xjb_length += com.noodlewiz.xjavab.core.internal.Measurer.measurePad(3); __xjb_length += com.noodlewiz.xjavab.core.internal.Measurer.measureUInt(); __xjb_length += com.noodlewiz.xjavab.core.internal.Measurer.measureUInt(); __xjb_length += com.noodlewiz.xjavab.core.internal.Measurer.measureUInt(); __xjb_length += com.noodlewiz.xjavab.core.internal.Measurer.measureShort(); __xjb_length += com.noodlewiz.xjavab.core.internal.Measurer.measureShort(); for (com.noodlewiz.xjavab.ext.render.Pointfix __xjb_t : this.points) { __xjb_length += com.noodlewiz.xjavab.ext.render.internal.Measurer.measure(__xjb_t); } __xjb_length += Util.padding(__xjb_length); final ByteBuffer __xjb_buf = ByteBuffer.allocate(__xjb_length); __xjb_buf.position(4); com.noodlewiz.xjavab.core.internal.Packer.packUByte(__xjb_buf, this.op); com.noodlewiz.xjavab.core.internal.Packer.packPad(__xjb_buf, 3); com.noodlewiz.xjavab.core.internal.Packer.packUInt(__xjb_buf, this.src); com.noodlewiz.xjavab.core.internal.Packer.packUInt(__xjb_buf, this.dst); com.noodlewiz.xjavab.core.internal.Packer.packUInt(__xjb_buf, this.maskFormat); com.noodlewiz.xjavab.core.internal.Packer.packShort(__xjb_buf, this.srcX); com.noodlewiz.xjavab.core.internal.Packer.packShort(__xjb_buf, this.srcY); for (com.noodlewiz.xjavab.ext.render.Pointfix __xjb_t : this.points) { com.noodlewiz.xjavab.ext.render.internal.Packer.pack(__xjb_buf, __xjb_t); } return __xjb_buf; }
@Override public ByteBuffer pack() { int __xjb_length = 3; __xjb_length += Measurer.measureUByte(); __xjb_length += Measurer.measureUInt(); __xjb_length += Measurer.measureUInt(); __xjb_length += Util.padding(__xjb_length); final ByteBuffer __xjb_buf = ByteBuffer.allocate(__xjb_length); __xjb_buf.position(1); Packer.packUByte(__xjb_buf, this.revertTo); __xjb_buf.position(4); Packer.packUInt(__xjb_buf, this.focus); Packer.packUInt(__xjb_buf, this.time); return __xjb_buf; }
@Override public ByteBuffer pack() { int __xjb_length = 4; __xjb_length += Measurer.measureUInt(); __xjb_length += Measurer.measureUShort(); __xjb_length += Measurer.measureUShort(); __xjb_length += Measurer.measureUShort(); __xjb_length += Measurer.measureUShort(); __xjb_length += Measurer.measureUShort(); __xjb_length += Measurer.measureUShort(); __xjb_length += Measurer.measureUShort(); __xjb_length += Measurer.measureUShort(); __xjb_length += Measurer.measureUShort(); __xjb_length += Measurer.measurePad(2); __xjb_length += Measurer.measureUInt(); __xjb_length += Measurer.measurePad(12); __xjb_length += Measurer.measureUInt(); for (short __xjb_t : this._private) { __xjb_length += Measurer.measureUByte(); } __xjb_length += Util.padding(__xjb_length); final ByteBuffer __xjb_buf = ByteBuffer.allocate(__xjb_length); __xjb_buf.position(4); Packer.packUInt(__xjb_buf, this.screen); Packer.packUShort(__xjb_buf, this.hdisplay); Packer.packUShort(__xjb_buf, this.hsyncstart); Packer.packUShort(__xjb_buf, this.hsyncend); Packer.packUShort(__xjb_buf, this.htotal); Packer.packUShort(__xjb_buf, this.hskew); Packer.packUShort(__xjb_buf, this.vdisplay); Packer.packUShort(__xjb_buf, this.vsyncstart); Packer.packUShort(__xjb_buf, this.vsyncend); Packer.packUShort(__xjb_buf, this.vtotal); Packer.packPad(__xjb_buf, 2); Packer.packUInt(__xjb_buf, this.flags); Packer.packPad(__xjb_buf, 12); Packer.packUInt(__xjb_buf, this.privsize); for (short __xjb_t : this._private) { Packer.packUByte(__xjb_buf, __xjb_t); } return __xjb_buf; }