MCPcopy Create free account
hub / github.com/GenericMappingTools/gmt / gmtapi_bin_input_memory

Function gmtapi_bin_input_memory

src/gmt_api.c:1450–1464  ·  view source on GitHub ↗

! . */

Source from the content-addressed store, hash-verified

1448
1449/*! . */
1450GMT_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/*! . */
1467GMT_LOCAL char * gmtapi_tictoc_string (struct GMTAPI_CTRL *API, unsigned int mode) {

Callers 5

gmtapi_import_datasetFunction · 0.85
gmtapi_write_matrixFunction · 0.85
gmtapi_write_vectorFunction · 0.85
gmtapi_get_record_matrixFunction · 0.85
gmtapi_get_record_vectorFunction · 0.85

Calls 3

gmtlib_gap_detectedFunction · 0.85
gmtlib_set_gapFunction · 0.85

Tested by

no test coverage detected