src/classify/intfeaturespace.cpp
bool IntFeatureSpace::Serialize(FILE *fp) const {
  if (fwrite(&x_buckets_, sizeof(x_buckets_), 1, fp) != 1) {
    return false;
  }
  if (fwrite(&y_buckets_, sizeof(y_buckets_), 1, fp) != 1) {
    return false;
  }
  if (fwrite(&theta_buckets_, sizeof(theta_buckets_), 1, fp) != 1) {
    return false;
  }
  return true;
}
// Serializes the feature space definition to the given file.
// Returns false on error.
Serializes the feature space definition to the given file.
Returns false on error.
Serializes the feature space definition to the given file . Returns false on error .
bool IntFeatureSpace::Serialize(FILE *fp) const {
  if (fwrite(&x_buckets_, sizeof(x_buckets_), 1, fp) != 1) {
    return false;
  }
  if (fwrite(&y_buckets_, sizeof(y_buckets_), 1, fp) != 1) {
    return false;
  }
  if (fwrite(&theta_buckets_, sizeof(theta_buckets_), 1, fp) != 1) {
    return false;
  }
  return true;
}
bool IntFeatureSpace :: Serialize ( FILE * fp ) const { if ( fwrite ( & x_buckets_ , sizeof ( x_buckets_ ) , 1 , fp ) != 1 ) { return false ; } if ( fwrite ( & y_buckets_ , sizeof ( y_buckets_ ) , 1 , fp ) != 1 ) { return false ; } if ( fwrite ( & theta_buckets_ , sizeof ( theta_buckets_ ) , 1 , fp ) != 1 ) { return false ; } return true ; }
Serializes the feature space definition to the given file.
Serializes the feature space definition to the given file .