Lines Matching refs:Segment
42 // A SegmentHeader is the header for a Mach-O 32-bit or 64-bit load segment command.
57 // A Segment represents a Mach-O 32-bit or 64-bit load segment command.
58 type Segment struct {
72 // Data reads and returns the contents of the segment.
73 func (s *Segment) Data() ([]byte, error) {
82 // Open returns a new ReadSeeker reading the segment.
83 func (s *Segment) Open() io.ReadSeeker { return io.NewSectionReader(s.sr, 0, 1<<63-1) }
247 var s *Segment
323 s = new(Segment)
361 s = new(Segment)
451 // Segment returns the first Segment with the given name, or nil if no such segment exists.
452 func (f *File) Segment(name string) *Segment {
454 if s, ok := l.(*Segment); ok && s.Name == name {