pub const CH_INVALID: i32 = -1;