src/classify/trainingsample.cpp
TrainingSample *TrainingSample::DeSerializeCreate(bool swap, FILE *fp) {
  auto *sample = new TrainingSample;
  if (sample->DeSerialize(swap, fp)) {
    return sample;
  }
  delete sample;
  return nullptr;
}
// Creates from the given file. Returns nullptr in case of error.
// If swap is true, assumes a big/little-endian swap is needed.
Creates from the given file. Returns nullptr in case of error.
If swap is true, assumes a big/little-endian swap is needed.
Creates from the given file . Returns nullptr in case of error . If swap is true assumes a big / little - endian swap is needed .
TrainingSample *TrainingSample::DeSerializeCreate(bool swap, FILE *fp) {
  auto *sample = new TrainingSample;
  if (sample->DeSerialize(swap, fp)) {
    return sample;
  }
  delete sample;
  return nullptr;
}
TrainingSample * TrainingSample :: DeSerializeCreate ( bool swap , FILE * fp ) { auto * sample = new TrainingSample ; if ( sample -> DeSerialize ( swap , fp ) ) { return sample ; } delete sample ; return nullptr ; }
Creates from the given file.
Creates from the given file .