func (s dataSegment) containsRange(addr, size uint64) bool {
	return s.contains(addr) && (size == 0 || s.contains(addr+size-1))
}
containsRange reports whether the segment contains the range [addr, addr+size).
package corefile
import (
	"fmt"
	"sort"
)
type dataSegment struct {
	addr uint64
	data []byte  
}
func (s dataSegment) String() string {
	return fmt.Sprintf("dataSegment{addr: 0x%x, size: 0x%x}", s.addr, s.size())
}
func (s dataSegment) contains(addr uint64) bool {
	return s.addr <= addr && addr < s.addr+s.size()
}