! . */
| 1448 | |
| 1449 | /*! . */ |
| 1450 | GMT_LOCAL int gmtapi_bin_input_memory (struct GMT_CTRL *GMT, uint64_t n, uint64_t n_use) { |
| 1451 | /* Read function which gets one record from the memory reference. |
| 1452 | * The current data record has already been read from wherever and is available in |
| 1453 | * GMT->current.io.curr_rec so that is where we operate from */ |
| 1454 | unsigned int status; |
| 1455 | gmt_M_unused(n); |
| 1456 | |
| 1457 | GMT->current.io.status = GMT_IO_DATA_RECORD; /* Default status we expect, but this may change below */ |
| 1458 | GMT->current.io.rec_no++; /* One more input record read */ |
| 1459 | status = gmtlib_process_binary_input (GMT, n_use); /* Check for segment headers */ |
| 1460 | if (status == 1) return (GMTAPI_GOT_SEGHEADER); /* A segment header was found and we are done here */ |
| 1461 | if (gmtlib_gap_detected (GMT)) { gmtlib_set_gap (GMT); return (GMTAPI_GOT_SEGGAP); } /* Gap forced a segment header to be issued and we get out */ |
| 1462 | GMT->current.io.data_record_number_in_set[GMT_IN]++; /* Actually got a valid data record */ |
| 1463 | return (GMT_NOERROR); |
| 1464 | } |
| 1465 | |
| 1466 | /*! . */ |
| 1467 | GMT_LOCAL char * gmtapi_tictoc_string (struct GMTAPI_CTRL *API, unsigned int mode) { |
no test coverage detected