Adds a segment to the view. NOTE: Consider using [BinaryViewExt::begin_bulk_add_segments] and [BinaryViewExt::end_bulk_add_segments] if you plan on adding a number of segments all at once, to avoid unnecessary MemoryMap updates.
(&self, segment: SegmentBuilder)
| 836 | /// NOTE: Consider using [BinaryViewExt::begin_bulk_add_segments] and [BinaryViewExt::end_bulk_add_segments] |
| 837 | /// if you plan on adding a number of segments all at once, to avoid unnecessary MemoryMap updates. |
| 838 | fn add_segment(&self, segment: SegmentBuilder) { |
| 839 | segment.create(self.as_ref()); |
| 840 | } |
| 841 | |
| 842 | // TODO: Replace with BulkModify guard. |
| 843 | /// Start adding segments in bulk. Useful for adding large numbers of segments. |
no test coverage detected