MCPcopy Create free account
hub / github.com/ImageOptim/libimagequant / liq_attr_copy

Function liq_attr_copy

imagequant-sys/src/ffi.rs:446–453  ·  view source on GitHub ↗
(attr: &liq_attr)

Source from the content-addressed store, hash-verified

444#[no_mangle]
445#[inline(never)]
446pub extern "C" fn liq_attr_copy(attr: &liq_attr) -> Option<Box<liq_attr>> {
447 if bad_object!(attr, LIQ_ATTR_MAGIC) { return None; }
448 Some(Box::new(liq_attr {
449 magic_header: LIQ_ATTR_MAGIC,
450 inner: attr.inner.clone(),
451 c_api_free: attr.c_api_free,
452 }))
453}
454
455#[no_mangle]
456#[inline(never)]

Calls 2

newFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected