Skip to main content

read_response

Function read_response 

Source
pub fn read_response(data: &[u8]) -> (Vec<u8>, Vec<u8>)
Expand description

Build a READ_ANDX response (WC=12).

Layout per [MS-CIFS] ยง2.2.4.43.2 / [MS-SMB] extensions: AndX triple, Remaining, CompactionMode, Reserved, DataLength, DataOffset, DataLengthHigh(u32), Reserved(u32), Reserved tail(2B) = 24 bytes total.

Data starts after ByteCount, padded to even alignment.