MCPcopy Create free account
hub / github.com/audeering/opensmile / copyFrom

Method copyFrom

src/core/dataMemoryLevel.cpp:25–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23FieldMetaInfo::FieldMetaInfo() : name(NULL), info(NULL), infoSize(0), dataType(DATATYPE_UNKNOWN), N(0), arrNameOffset(0) {}
24
25void FieldMetaInfo::copyFrom(FieldMetaInfo *f) {
26 if (f!=NULL) {
27 Nstart=f->Nstart;
28 N = f->N;
29 arrNameOffset = f->arrNameOffset;
30 dataType = f->dataType;
31 infoSize = f->infoSize;
32 if (info != NULL) free(info);
33 info = malloc(infoSize);
34 memcpy(info, f->info, infoSize);
35 if (name != NULL) free(name);
36 if (f->name != NULL) name = strdup(f->name);
37 else name = NULL;
38 }
39}
40
41FieldMetaInfo::~FieldMetaInfo() {
42 if (name!=NULL) free(name);

Callers 1

growLevelMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected