@Override public ByteBuffer pack() { int __xjb_length = 3; __xjb_length += Measurer.measureBool(); __xjb_length += Measurer.measureUInt(); __xjb_length += Measurer.measureUShort(); __xjb_length += Measurer.measureUShort(); __xjb_length += Util.padding(__xjb_length); final ByteBuffer __xjb_buf = ByteBuffer.allocate(__xjb_length); __xjb_buf.position(1); Packer.packBool(__xjb_buf, this.contiguous); __xjb_buf.position(4); Packer.packUInt(__xjb_buf, this.cmap); Packer.packUShort(__xjb_buf, this.colors); Packer.packUShort(__xjb_buf, this.planes); 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; }
public static ByteBuffer pack(final ByteBuffer __xjb_buf, final ModeInfo __xjb_struct) { com.noodlewiz.xjavab.core.internal.Packer.packUInt(__xjb_buf, __xjb_struct.dotclock); com.noodlewiz.xjavab.core.internal.Packer.packUShort(__xjb_buf, __xjb_struct.hdisplay); com.noodlewiz.xjavab.core.internal.Packer.packUShort(__xjb_buf, __xjb_struct.hsyncstart); com.noodlewiz.xjavab.core.internal.Packer.packUShort(__xjb_buf, __xjb_struct.hsyncend); com.noodlewiz.xjavab.core.internal.Packer.packUShort(__xjb_buf, __xjb_struct.htotal); com.noodlewiz.xjavab.core.internal.Packer.packUInt(__xjb_buf, __xjb_struct.hskew); com.noodlewiz.xjavab.core.internal.Packer.packUShort(__xjb_buf, __xjb_struct.vdisplay); com.noodlewiz.xjavab.core.internal.Packer.packUShort(__xjb_buf, __xjb_struct.vsyncstart); com.noodlewiz.xjavab.core.internal.Packer.packUShort(__xjb_buf, __xjb_struct.vsyncend); com.noodlewiz.xjavab.core.internal.Packer.packUShort(__xjb_buf, __xjb_struct.vtotal); com.noodlewiz.xjavab.core.internal.Packer.packPad(__xjb_buf, 4); com.noodlewiz.xjavab.core.internal.Packer.packUInt(__xjb_buf, __xjb_struct.flags); com.noodlewiz.xjavab.core.internal.Packer.packPad(__xjb_buf, 12); com.noodlewiz.xjavab.core.internal.Packer.packUInt(__xjb_buf, __xjb_struct.privsize); return __xjb_buf; }