AddressLib/vopio.c
int datasize(MomImage *image)

{
  if (image) {
    switch (image->type) {
    case UCHAR_TYPE: return sizeof(char);
    case SHORT_TYPE: return sizeof(short);
    case FLOAT_TYPE: return sizeof(float);
    case NONE_TYPE: return 0;
    }
  }
  return 0;
}
/**********************************************************************/
/*  datasize  returns datasize of selected dataformat                 */
/**********************************************************************/
datasize  returns datasize of selected dataformat
datasize returns datasize of selected dataformat
int datasize(MomImage *image)
{
  if (image) {
    switch (image->type) {
    case UCHAR_TYPE: return sizeof(char);
    case SHORT_TYPE: return sizeof(short);
    case FLOAT_TYPE: return sizeof(float);
    case NONE_TYPE: return 0;
    }
  }
  return 0;
}
int datasize ( MomImage * image ) { if ( image ) { switch ( image -> type ) { case UCHAR_TYPE : return sizeof ( char ) ; case SHORT_TYPE : return sizeof ( short ) ; case FLOAT_TYPE : return sizeof ( float ) ; case NONE_TYPE : return 0 ; } } return 0 ; }
datasize  returns datasize of selected dataformat
datasize returns datasize of selected dataformat