Skip to main content

JS_ToInt64Clamp

Function JS_ToInt64Clamp 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_ToInt64Clamp( ctx: *mut JsContext, pres: *mut i64, val: JsValue, min: i64, max: i64, neg_offset: i64, ) -> c_int
Expand description

JS_ToInt64Clamp: JS_ToInt64Sat and then an affine shift, which is how the reference reads a Date’s time value with a timezone correction.

§Safety

pres must be null or writable, val a live JSValue.