Skip to main content

build_copychunk_resp

Function build_copychunk_resp 

Source
pub fn build_copychunk_resp(
    chunks_written: u32,
    chunk_bytes_written: u32,
    total_bytes_written: u32,
) -> Vec<u8> 
Expand description

Build the SRV_COPYCHUNK_RESPONSE ([MS-SMB2] §2.2.32.1). On success it reports chunks/bytes written; on a limits violation the caller sends it with STATUS_INVALID_PARAMETER carrying the server’s maximums.