Skip to main content

nros_platform_tcp_read_exact

Function nros_platform_tcp_read_exact 

Source
pub unsafe extern "C" fn nros_platform_tcp_read_exact(
    sock: *const c_void,
    buf: *mut u8,
    len: usize,
) -> usize
Expand description

Read exactly len bytes. Returns len on success, or NROS_PLATFORM_NET_SOCKET_ERROR on error.