Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for FileHeader (0.24 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/debug/pe/string.go

    func cstring(b []byte) string {
    	i := bytes.IndexByte(b, 0)
    	if i == -1 {
    		i = len(b)
    	}
    	return string(b[:i])
    }
    
    // StringTable is a COFF string table.
    type StringTable []byte
    
    func readStringTable(fh *FileHeader, r io.ReadSeeker) (StringTable, error) {
    	// COFF string table is located right after COFF symbol table.
    	if fh.PointerToSymbolTable <= 0 {
    		return nil, nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:06:17 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/PluginIdExtensions.kt

        gradleJars: Iterable<File>,
        pluginDependenciesSpecQualifiedName: String,
        pluginDependencySpecQualifiedName: String,
    ) {
        file.bufferedWriter().use { writer ->
            writer.appendReproducibleNewLine(fileHeader)
            pluginIdExtensionDeclarationsFor(
                gradleJars,
                pluginDependenciesSpecQualifiedName,
                pluginDependencySpecQualifiedName
            ).forEach { extension ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Nov 12 16:16:07 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  9. src/debug/pe/pe.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package pe
    
    type FileHeader struct {
    	Machine              uint16
    	NumberOfSections     uint16
    	TimeDateStamp        uint32
    	PointerToSymbolTable uint32
    	NumberOfSymbols      uint32
    	SizeOfOptionalHeader uint16
    	Characteristics      uint16
    }
    
    type DataDirectory struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 09 01:21:43 UTC 2022
    - 6.6K bytes
    - Viewed (0)
  10. lib/time/mkzip.go

    		if err != nil {
    			log.Fatal(err)
    		}
    		if strings.HasSuffix(path, ".zip") {
    			log.Fatalf("unexpected file during walk: %s", path)
    		}
    		name := filepath.ToSlash(path)
    		w, err := zw.CreateRaw(&zip.FileHeader{
    			Name:               name,
    			Method:             zip.Store,
    			CompressedSize64:   uint64(len(data)),
    			UncompressedSize64: uint64(len(data)),
    			CRC32:              crc32.ChecksumIEEE(data),
    		})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:32:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top