void write(DataOutput out) throws IOException { super.write(out); switch (getOpcode()) { case Constants.GOTOW: case Constants.JSRW: out.writeInt(_target.getByteIndex() - getByteIndex()); break; default: out.writeShort(_target.getByteIndex() - getByteIndex()); } }
void read(DataInput in) throws IOException { super.read(in); switch (getOpcode()) { case Constants.GOTOW: case Constants.JSRW: _target.setByteIndex(getByteIndex() + in.readInt()); break; default: _target.setByteIndex(getByteIndex() + in.readShort()); } }
void write(DataOutput out) throws IOException { super.write(out); switch (getOpcode()) { case Constants.GOTOW: case Constants.JSRW: out.writeInt(_target.getByteIndex() - getByteIndex()); break; default: out.writeShort(_target.getByteIndex() - getByteIndex()); } }
void read(DataInput in) throws IOException { super.read(in); switch (getOpcode()) { case Constants.GOTOW: case Constants.JSRW: _target.setByteIndex(getByteIndex() + in.readInt()); break; default: _target.setByteIndex(getByteIndex() + in.readShort()); } }