Back to index

salome-kernel  6.5.0
Functions
HDFdatasetRead.c File Reference
#include "hdfi.h"

Go to the source code of this file.

Functions

hdf_err HDFdatasetRead (hdf_idt id, void *val)

Function Documentation

hdf_err HDFdatasetRead ( hdf_idt  id,
void *  val 
)

Definition at line 41 of file HDFdatasetRead.c.

{
  hdf_idt datatype;
  hdf_err ret;

  if ((datatype = H5Dget_type(id)) < 0)
    return -1;

//#if defined (PCLINUX) || defined (PCLINUX64)
  if ((H5Tget_class(datatype) == H5T_INTEGER) && (H5Tget_size(datatype) == 4)) 
    datatype = H5T_NATIVE_INT;
//#endif 

  if ((ret = H5Dread(id,datatype,H5S_ALL,H5S_ALL,H5P_DEFAULT, val)) < 0)
    return -1;

  return 0;
}

Here is the caller graph for this function: