pub(crate) fn new(stream: W, presentation_context_id: u8, max_pdu_length: u32) -> Self {
        let max_data_length = calculate_max_data_len_single(max_pdu_length);
        PDataWriter {
            stream,
            presentation_context_id,
            max_data_length,
            buffer: Vec::with_capacity(max_data_length as usize),
        }
    }
/// Construct a new P-Data value writer.
Construct a new P-Data value writer.
Construct a new P - Data value writer .
pub(crate) fn new(stream: W, presentation_context_id: u8, max_pdu_length: u32) -> Self {
        let max_data_length = calculate_max_data_len_single(max_pdu_length);
        PDataWriter {
            stream,
            presentation_context_id,
            max_data_length,
            buffer: Vec::with_capacity(max_data_length as usize),
        }
    }
pub ( crate ) fn new ( stream : W , presentation_context_id : u8 , max_pdu_length : u32 ) -> Self { let max_data_length = calculate_max_data_len_single ( max_pdu_length ) ; PDataWriter { stream , presentation_context_id , max_data_length , buffer : Vec :: with_capacity ( max_data_length as usize ) , } }
Construct a new P-Data value writer.
Construct a new P - Data value writer .
stream
W
presentation_context_id
u8
max_pdu_length
u32
stream
W
presentation_context_id
u8
max_pdu_length
u32