point-max is a built-in function in ‘C source code’.
(point-max)
Return the maximum permissible value of point in the current buffer. This is (1+ (buffer-size)), unless narrowing (a buffer restriction) is in effect, in which case it is less.
バッファの最大値を求める