min
05/10/2026, 10:42 AMprivate fun IntArray?.initGroups(offset: Int) {
if (this == null) return
groupNext(0, NULL_ADDRESS)
groupChild(0, offset)
}
What’s this method for?
internal inline fun IntArray.groupNext(address: GroupAddress, value: Int) {
this[address + SLOT_TABLE_GROUP_NEXT_OFFSET] = value
}
internal inline fun IntArray.groupChild(address: GroupAddress, value: Int) {
this[address + SLOT_TABLE_GROUP_CHILD_OFFSET] = value
}
It sets the next address of group 0 to NULL_ADDRESS, effectively marking it as the last group, and… sets the address to its child to offset? What’s the declarative object of these imperative steps?Kirill Grouchnikov
05/10/2026, 3:00 PM