Inlined getSpace without range checking