method endIndex =
    int_of_sv (call_method sv "endIndex" [])