fn write_size_of_layout(w: &mut Buffer, layout: &LayoutS, tag_size: u64)