fn flush_segment(
segments: &mut Vec<(u64, Data)>,
offset: &mut u64,
cur_segment: Vec<u8>,
)Expand description
Used during construction.
Converts the current buffer (passed as cur_segment) into a Data::Literal segment and
inserts it into self.segments.