You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4318c63
Browse filesBrowse the repository at this point in the historyBrowse files
``add_user_segment`` creates a user-defined segment that specifies how data from the raw file is mapped into a virtual address space.
10774
10800
10801
+
.. note:: User segments are deprecated in favor of mapped memory regions. Use :py:func:`MemoryMap.add_mapped_memory_region` instead. User segments remain supported for cases the memory-region API does not yet cover (e.g. a segment whose virtual length exceeds its file-backed data).
10802
+
10775
10803
:param int start: virtual address of the start of the segment
10776
10804
:param int length: length of the segment (may be larger than the source data)
10777
10805
:param int data_offset: offset from the parent view
``remove_user_segment`` Removes a user-defined segment from the current segment mapping. This method removes the most recently added 'user' segment that either matches the specified start address or contains it.
10797
10827
10828
+
.. note:: User segments are deprecated in favor of mapped memory regions. Use :py:func:`MemoryMap.remove_memory_region` instead.
10829
+
10798
10830
:param int start: virtual address of the start of the segment
0 commit comments