Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for SectionReader (0.28 sec)

  1. src/io/io.go

    		// Assume we can read up to an offset of 1<<63 - 1.
    		remaining = maxint64
    	}
    	return &SectionReader{r, off, off, remaining, n}
    }
    
    // SectionReader implements Read, Seek, and ReadAt on a section
    // of an underlying [ReaderAt].
    type SectionReader struct {
    	r     ReaderAt // constant after creation
    	base  int64    // constant after creation
    	off   int64
    	limit int64 // constant after creation
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:34:10 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  2. src/debug/macho/file.go

    	Scattered bool
    }
    
    type Section struct {
    	SectionHeader
    	Relocs []Reloc
    
    	// Embed ReaderAt for ReadAt method.
    	// Do not embed SectionReader directly
    	// to avoid having Read and Seek.
    	// If a client wants Read and Seek it must use
    	// Open() to avoid fighting over the seek offset
    	// with other clients.
    	io.ReaderAt
    	sr *io.SectionReader
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  3. src/debug/elf/file.go

    type File struct {
    	FileHeader
    	Sections  []*Section
    	Progs     []*Prog
    	closer    io.Closer
    	gnuNeed   []verneed
    	gnuVersym []byte
    }
    
    // A SectionHeader represents a single ELF section header.
    type SectionHeader struct {
    	Name      string
    	Type      SectionType
    	Flags     SectionFlag
    	Addr      uint64
    	Offset    uint64
    	Size      uint64
    	Link      uint32
    	Info      uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 16:49:58 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  4. src/internal/xcoff/file.go

    	"io"
    	"os"
    	"strings"
    )
    
    // SectionHeader holds information about an XCOFF section header.
    type SectionHeader struct {
    	Name           string
    	VirtualAddress uint64
    	Size           uint64
    	Type           uint32
    	Relptr         uint64
    	Nreloc         uint32
    }
    
    type Section struct {
    	SectionHeader
    	Relocs []Reloc
    	io.ReaderAt
    	sr *io.SectionReader
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 12 14:42:29 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  5. src/io/io_test.go

    			brOff, brErr := br.Seek(offset, whence)
    			srOff, srErr := sr.Seek(offset, whence)
    			if (brErr != nil) != (srErr != nil) || brOff != srOff {
    				t.Errorf("For whence %d, offset %d: bytes.Reader.Seek = (%v, %v) != SectionReader.Seek = (%v, %v)",
    					whence, offset, brOff, brErr, srErr, srOff)
    			}
    		}
    	}
    
    	// And verify we can just seek past the end and get an EOF
    	got, err := sr.Seek(100, SeekStart)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 22:04:41 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  6. src/debug/macho/file_test.go

    package macho
    
    import (
    	"bytes"
    	"internal/obscuretestdata"
    	"io"
    	"reflect"
    	"testing"
    )
    
    type fileTest struct {
    	file        string
    	hdr         FileHeader
    	loads       []any
    	sections    []*SectionHeader
    	relocations map[string][]Reloc
    }
    
    var fileTests = []fileTest{
    	{
    		"testdata/gcc-386-darwin-exec.base64",
    		FileHeader{0xfeedface, Cpu386, 0x3, 0x2, 0xc, 0x3c0, 0x85},
    		[]any{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 12.4K bytes
    - Viewed (0)
  7. src/debug/pe/file.go

    			r2 = &nobitsSectionReader{}
    		}
    		s.sr = io.NewSectionReader(r2, int64(s.SectionHeader.Offset), int64(s.SectionHeader.Size))
    		s.ReaderAt = s.sr
    		f.Sections[i] = s
    	}
    	for i := range f.Sections {
    		var err error
    		f.Sections[i].Relocs, err = readRelocs(&f.Sections[i].SectionHeader, sr)
    		if err != nil {
    			return nil, err
    		}
    	}
    
    	return f, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  8. src/debug/pe/file_test.go

    	file           string
    	hdr            FileHeader
    	opthdr         any
    	sections       []*SectionHeader
    	symbols        []*Symbol
    	hasNoDwarfInfo bool
    }
    
    var fileTests = []fileTest{
    	{
    		file: "testdata/gcc-386-mingw-obj",
    		hdr:  FileHeader{0x014c, 0x000c, 0x0, 0x64a, 0x1e, 0x0, 0x104},
    		sections: []*SectionHeader{
    			{".text", 0, 0, 36, 500, 1440, 0, 3, 0, 0x60300020},
    			{".data", 0, 0, 0, 0, 0, 0, 0, 0, 3224371264},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 01 02:25:16 UTC 2023
    - 22.3K bytes
    - Viewed (0)
  9. api/go1.6.txt

    pkg debug/elf, type Chdr64 struct, Size uint64
    pkg debug/elf, type Chdr64 struct, Type uint32
    pkg debug/elf, type CompressionType int
    pkg debug/elf, type R_MIPS int
    pkg debug/elf, type SectionHeader struct, FileSize uint64
    pkg encoding/asn1, const ClassApplication = 1
    pkg encoding/asn1, const ClassApplication ideal-int
    pkg encoding/asn1, const ClassContextSpecific = 2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 13 23:40:13 UTC 2016
    - 12.9K bytes
    - Viewed (0)
Back to top