MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / hb_data_dup

Function hb_data_dup

libhb/common.c:4426–4439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4424}
4425
4426hb_data_t * hb_data_dup(const hb_data_t *src)
4427{
4428 if (src == NULL)
4429 {
4430 return NULL;
4431 }
4432
4433 hb_data_t *data = hb_data_init(src->size);
4434 if (data)
4435 {
4436 memcpy(data->bytes, src->bytes, src->size);
4437 }
4438 return data;
4439}
4440
4441int global_verbosity_level; //Necessary for hb_deep_log
4442/**********************************************************************

Callers 2

hb_audio_copyFunction · 0.85
hb_subtitle_copyFunction · 0.85

Calls 1

hb_data_initFunction · 0.85

Tested by

no test coverage detected