src/opencl/openclwrapper.cpp
static ds_status serializeScore(ds_device *device, uint8_t **serializedScore,
                                unsigned int *serializedScoreSize) {
  *serializedScoreSize = sizeof(TessDeviceScore);
  *serializedScore = new uint8_t[*serializedScoreSize];
  memcpy(*serializedScore, device->score, *serializedScoreSize);
  return DS_SUCCESS;
}
// encode score object as byte string
encode score object as byte string
encode score object as byte string
static ds_status serializeScore(ds_device *device, uint8_t **serializedScore,
                                unsigned int *serializedScoreSize) {
  *serializedScoreSize = sizeof(TessDeviceScore);
  *serializedScore = new uint8_t[*serializedScoreSize];
  memcpy(*serializedScore, device->score, *serializedScoreSize);
  return DS_SUCCESS;
}
static ds_status serializeScore ( ds_device * device , uint8_t * * serializedScore , unsigned int * serializedScoreSize ) { * serializedScoreSize = sizeof ( TessDeviceScore ) ; * serializedScore = new uint8_t [ * serializedScoreSize ] ; memcpy ( * serializedScore , device -> score , * serializedScoreSize ) ; return DS_SUCCESS ; }
encode score object as byte string
encode score object as byte string