pub type FuriThreadStdinReadCallback = Option<unsafe extern "C" fn(buffer: *mut c_char, size: usize, timeout: FuriWait, context: *mut c_void) -> usize>;Expand description
Standard input callback function pointer type
The function to be used as a standard input callback MUST follow this signature.
§Arguments
buffer(direction out) - buffer to read data intosize(direction in) - maximum number of bytes to read into the buffertimeout(direction in) - how long to wait for (in ticks) before giving upcontext(direction in) - optional context
§Returns
number of bytes that was actually read into the buffer
Aliased Type§
pub enum FuriThreadStdinReadCallback {
None,
Some(unsafe extern "C" fn(*mut u8, usize, FuriWait, *mut c_void) -> usize),
}