Skip to main content

encode_stream_info

Function encode_stream_info 

Source
pub fn encode_stream_info(streams: &[(String, u64)]) -> Vec<u8> 
Expand description

Encode a FILE_STREAM_INFORMATION chain ([MS-FSCC] §2.4.40) from a list of (stream_name, size) pairs. Names are the full SMB stream syntax, e.g. ::$DATA for the default data stream or :Zone.Identifier:$DATA for an alternate data stream. An empty list yields an empty buffer (no streams).