See RaylibTempUtils.strnlen.
int strnlen(MemoryPointer ptr, int maxLen) => $.Utils.strnlen(ptr, maxLen);