Skip to main content

encode_create_contexts

Function encode_create_contexts 

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

Encode a chain of CREATE-response create-contexts ([MS-SMB2] §2.2.13.2) from (name, data) pairs, wiring NextEntryOffset links and keeping each entry 8-byte aligned. Returns an empty buffer for no entries.