numFreeBlocksIn

fun numFreeBlocksIn(piece: Int): Int

Blocks of piece still free to request (not requested/writing/finished), derived from the piece_info counters. snub_peer uses this to decide whether a stalled request actually blocks the piece's completion.