MCPcopy Index your code
hub / github.com/ImageOptim/libimagequant / liq_received_invalid_pointer

Function liq_received_invalid_pointer

imagequant-sys/src/ffi.rs:84–90  ·  view source on GitHub ↗
(ptr: *const u8)

Source from the content-addressed store, hash-verified

82#[no_mangle]
83#[inline(never)]
84unsafe extern "C" fn liq_received_invalid_pointer(ptr: *const u8) -> bool {
85 if ptr.is_null() {
86 return true;
87 }
88 let _ = ptr::read_volatile(ptr);
89 false
90}
91
92macro_rules! bad_object {
93 ($obj:expr, $tag:expr) => {{

Callers 6

liq_write_remapped_imageFunction · 0.85
liq_result_from_paletteFunction · 0.85
liq_image_create_rgbaFunction · 0.85
liq_histogram_add_colorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected