protected void writeInfo(byte[] code, int offset) { int constantIndexSize = constantIndexSize(); int constantSize = constantSize(); if (requiredConstantIndexSize() > constantIndexSize) { throw new IllegalArgumentException("Instruction has invalid constant index size ("+this.toString(offset)+")"); } writeValue(code, offset, constantIndex, constantIndexSize); offset += constantIndexSize; writeValue(code, offset, constant, constantSize); }
protected void writeInfo(byte[] code, int offset) { int constantIndexSize = constantIndexSize(); int constantSize = constantSize(); if (requiredConstantIndexSize() > constantIndexSize) { throw new IllegalArgumentException("Instruction has invalid constant index size ("+this.toString(offset)+")"); } writeValue(code, offset, constantIndex, constantIndexSize); offset += constantIndexSize; writeValue(code, offset, constant, constantSize); }
protected void writeInfo(byte[] code, int offset) { int constantIndexSize = constantIndexSize(); int constantSize = constantSize(); if (requiredConstantIndexSize() > constantIndexSize) { throw new IllegalArgumentException("Instruction has invalid constant index size ("+this.toString(offset)+")"); } writeValue(code, offset, constantIndex, constantIndexSize); offset += constantIndexSize; writeValue(code, offset, constant, constantSize); }
protected void writeInfo(byte[] code, int offset) { int constantIndexSize = constantIndexSize(); int constantSize = constantSize(); if (requiredConstantIndexSize() > constantIndexSize) { throw new IllegalArgumentException("Instruction has invalid constant index size ("+this.toString(offset)+")"); } writeValue(code, offset, constantIndex, constantIndexSize); offset += constantIndexSize; writeValue(code, offset, constant, constantSize); }