Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for FileHeader (0.12 sec)

  1. src/debug/plan9obj/file_test.go

    package plan9obj
    
    import (
    	"reflect"
    	"testing"
    )
    
    type fileTest struct {
    	file     string
    	hdr      FileHeader
    	sections []*SectionHeader
    }
    
    var fileTests = []fileTest{
    	{
    		"testdata/386-plan9-exec",
    		FileHeader{Magic386, 0x324, 0x14, 4, 0x1000, 32},
    		[]*SectionHeader{
    			{"text", 0x4c5f, 0x20},
    			{"data", 0x94c, 0x4c7f},
    			{"syms", 0x2c2b, 0x55cb},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 23:34:33 UTC 2016
    - 1.7K bytes
    - Viewed (0)
  2. src/net/http/clone.go

    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname cloneMultipartFileHeader
    func cloneMultipartFileHeader(fh *multipart.FileHeader) *multipart.FileHeader {
    	if fh == nil {
    		return nil
    	}
    	fh2 := new(multipart.FileHeader)
    	*fh2 = *fh
    	fh2.Header = textproto.MIMEHeader(Header(fh.Header).Clone())
    	return fh2
    }
    
    // cloneOrMakeHeader invokes Header.Clone but if the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. src/mime/multipart/formdata.go

    			}
    		}
    	}
    	return err
    }
    
    // A FileHeader describes a file part of a multipart request.
    type FileHeader struct {
    	Filename string
    	Header   textproto.MIMEHeader
    	Size     int64
    
    	content   []byte
    	tmpfile   string
    	tmpoff    int64
    	tmpshared bool
    }
    
    // Open opens and returns the [FileHeader]'s associated File.
    func (fh *FileHeader) Open() (File, error) {
    	if b := fh.content; b != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. src/internal/xcoff/ar_test.go

    	file              string
    	hdr               ArchiveHeader
    	members           []*MemberHeader
    	membersFileHeader []FileHeader
    }
    
    var archTest = []archiveTest{
    	{
    		"testdata/bigar-ppc64",
    		ArchiveHeader{AIAMAGBIG},
    		[]*MemberHeader{
    			{"printbye.o", 836},
    			{"printhello.o", 860},
    		},
    		[]FileHeader{
    			{U64_TOCMAGIC},
    			{U64_TOCMAGIC},
    		},
    	},
    	{
    		"testdata/bigar-empty",
    		ArchiveHeader{AIAMAGBIG},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 22:19:22 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  5. src/internal/xcoff/file_test.go

    package xcoff
    
    import (
    	"reflect"
    	"testing"
    )
    
    type fileTest struct {
    	file     string
    	hdr      FileHeader
    	sections []*SectionHeader
    	needed   []string
    }
    
    var fileTests = []fileTest{
    	{
    		"testdata/gcc-ppc32-aix-dwarf2-exec",
    		FileHeader{U802TOCMAGIC},
    		[]*SectionHeader{
    			{".text", 0x10000290, 0x00000bbd, STYP_TEXT, 0x7ae6, 0x36},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 10 18:52:31 UTC 2018
    - 3K bytes
    - Viewed (0)
  6. src/debug/macho/file_test.go

    	"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

    	_, err = sr.Seek(base+int64(binary.Size(f.FileHeader)), io.SeekStart)
    	if err != nil {
    		return nil, err
    	}
    
    	// Read optional header.
    	f.OptionalHeader, err = readOptionalHeader(sr, f.FileHeader.SizeOfOptionalHeader)
    	if err != nil {
    		return nil, err
    	}
    
    	// Process sections.
    	f.Sections = make([]*Section, f.FileHeader.NumberOfSections)
    	for i := 0; i < int(f.FileHeader.NumberOfSections); i++ {
    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/plan9obj/file.go

    	"errors"
    	"fmt"
    	"internal/saferio"
    	"io"
    	"os"
    )
    
    // A FileHeader represents a Plan 9 a.out file header.
    type FileHeader struct {
    	Magic       uint32
    	Bss         uint32
    	Entry       uint64
    	PtrSize     int
    	LoadAddress uint64
    	HdrSize     uint64
    }
    
    // A File represents an open Plan 9 a.out file.
    type File struct {
    	FileHeader
    	Sections []*Section
    	closer   io.Closer
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  9. src/debug/pe/file_test.go

    	"testing"
    	"text/template"
    )
    
    type fileTest struct {
    	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{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 01 02:25:16 UTC 2023
    - 22.3K bytes
    - Viewed (0)
  10. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/SourceFileHeader.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.kotlin.dsl.internal.sharedruntime.codegen
    
    
    val fileHeader: String
        get() = fileHeaderFor(kotlinDslPackageName)
    
    
    fun fileHeaderFor(packageName: String, isIncubating: Boolean = false) =
        """$licenseHeader
    
    @file:Suppress(
        "unused",
        "nothing_to_inline",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Nov 12 16:16:08 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top