Page tree

The license could not be verified: License Certificate has expired!

 

JAVA

FORTRAN

C++

C

 

Link

H5TB_INSERT_RECORD

Insert records

Procedure:

H5TB_INSERT_RECORD (loc_id, dset_name, start, nrecords, type_size, field_offset, field_sizes, buf )

Signature:

herr_t H5TBinsert_record(hid_t loc_id,
                         const char *dset_name,
                         hsize_t start,
                         hsize_t nrecords,
                         size_t type_size,
                         const size_t *field_offset,
                         const size_t *field_sizes,
                         void *buf)

Parameters:
hid_t loc_idIN: Identifier of the file or group in which the table is located
const char *dset_nameIN: The name of the dataset
hsize_t  startIN: The position to insert
hsize_t nrecordsIN: The number of records to insert

size_t type_size

IN: The size in bytes of the structure associated with the table

const size_t *field_offset

IN: An array containing the offsets of the fields

const size_t *field_sizes

IN: An array containing the size in bytes of the fields
void *dataIN: Buffer with data

Description:

H5TB_INSERT_RECORD inserts records into the middle of the table ("pushing down" all the records after it)

Returns:

Returns a non-negative value if successful; otherwise returns a negative value.

Example:

hl / examples / ex_table_08.c [105:110]  1.10/master  HDFFV/hdf5
 /* Insert records */
 start    = 3;
 nrecords = NRECORDS_INS;
 H5TBinsert_record( file_id, TABLE_NAME, start, nrecords, dst_size, dst_offset,
  dst_sizes, p_data_insert );

--- Last Modified: December 11, 2019 | 01:53 PM