encodeId

fun encodeId(keyId: Int, type: Int, componentTreeId: Int): Long

Packs keyId, type, and componentTreeId into a single layout-output id.