package com.protryon.jasm.stage1.constant

import java.io.DataOutputStream
import java.io.IOException

import com.protryon.jasm.stage1.CConstant
import com.shapesecurity.functional.Pair

class CInterfaceMethodRef(class_index: Int, name_and_type_index: Int) : CConstant<Pair<Int, Int>>(Pair.of(class_index, name_and_type_index), 11) {

    @Throws(IOException::class)
    public override fun write(out: DataOutputStream) {
        out.writeShort(this.value.left)
        out.writeShort(this.value.right)
    }
}
