Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 278 for sparse (2.35 sec)

  1. src/archive/tar/format.go

    //
    // The table's lower portion shows specialized features of each format,
    // such as supported string encodings, support for sub-second timestamps,
    // or support for sparse files.
    //
    // The Writer currently provides no support for sparse files.
    type Format int
    
    // Constants to identify various tar formats.
    const (
    	// Deliberately hide the meaning of constants from public API.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  2. src/archive/tar/writer.go

    	// TODO(dsnet): Re-enable this when adding sparse support.
    	// See https://golang.org/issue/22735
    	/*
    		// Handle sparse files.
    		var spd sparseDatas
    		var spb []byte
    		if len(hdr.SparseHoles) > 0 {
    			sph := append([]sparseEntry{}, hdr.SparseHoles...) // Copy sparse map
    			sph = alignSparseEntries(sph, hdr.Size)
    			spd = invertSparseEntries(sph, hdr.Size)
    
    			// Format the sparse map.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  3. src/archive/tar/reader.go

    			// There are more entries. Read an extension header and parse its entries.
    			if _, err := mustReadFull(tr.r, blk[:]); err != nil {
    				return nil, err
    			}
    			s = blk.toSparse()
    			continue
    		}
    		return spd, nil // Done
    	}
    }
    
    // readGNUSparseMap1x0 reads the sparse map as stored in GNU's PAX sparse format
    // version 1.0. The format of the sparse map consists of a series of
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  4. src/archive/tar/reader_test.go

    		{pax + trash[:511], 0, io.ErrUnexpectedEOF},
    		{sparse[:511], 0, io.ErrUnexpectedEOF},
    		{sparse[:512], 0, io.ErrUnexpectedEOF},
    		{sparse[:3584], 1, io.EOF},
    		{sparse[:9200], 1, io.EOF}, // Terminate in padding of sparse header
    		{sparse[:9216], 1, io.EOF},
    		{sparse[:9728], 2, io.ErrUnexpectedEOF},
    		{sparse[:10240], 2, io.EOF},
    		{sparse[:11264], 2, io.ErrUnexpectedEOF},
    		{sparse, 5, io.EOF},
    		{sparse + trash, 5, io.EOF},
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  5. src/archive/tar/common.go

    	// Keywords for GNU sparse files in a PAX extended header.
    	paxGNUSparse          = "GNU.sparse."
    	paxGNUSparseNumBlocks = "GNU.sparse.numblocks"
    	paxGNUSparseOffset    = "GNU.sparse.offset"
    	paxGNUSparseNumBytes  = "GNU.sparse.numbytes"
    	paxGNUSparseMap       = "GNU.sparse.map"
    	paxGNUSparseName      = "GNU.sparse.name"
    	paxGNUSparseMajor     = "GNU.sparse.major"
    	paxGNUSparseMinor     = "GNU.sparse.minor"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  6. src/archive/tar/writer_test.go

    			}, nil},
    			testClose{nil},
    		},
    		// TODO(dsnet): Re-enable this test when adding sparse support.
    		// See https://golang.org/issue/22735
    		/*
    			}, {
    				file: "testdata/gnu-nil-sparse-data.tar",
    				tests: []testFnc{
    					testHeader{Header{
    						Typeflag:    TypeGNUSparse,
    						Name:        "sparse.db",
    						Size:        1000,
    						SparseHoles: []sparseEntry{{Offset: 1000, Length: 0}},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/parse.go

    	p.errorCount++
    	if p.errorCount > 10 && !*flags.AllErrors {
    		log.Fatal("too many errors")
    	}
    }
    
    func (p *Parser) pos() src.XPos {
    	return p.ctxt.PosTable.XPos(src.MakePos(p.lex.Base(), uint(p.lineNum), 0))
    }
    
    func (p *Parser) Parse() (*obj.Prog, bool) {
    	scratch := make([][]lex.Token, 0, 3)
    	for {
    		word, cond, operands, ok := p.line(scratch)
    		if !ok {
    			break
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  8. internal/amztime/parse_test.go

    			"Tue, 10 Nov 2009 23:00:00 UTC",
    		},
    	}
    
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run(testCase.timeStr, func(t *testing.T) {
    			gott, goterr := Parse(testCase.timeStr)
    			if !errors.Is(goterr, testCase.expectedErr) {
    				t.Errorf("expected %v, got %v", testCase.expectedErr, goterr)
    			}
    			if !gott.Equal(testCase.expectedTime) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Sep 07 14:24:54 GMT 2022
    - 1.6K bytes
    - Viewed (0)
  9. internal/jwt/parser.go

    // MarshalJSON marshals the MapClaims struct
    func (c *MapClaims) MarshalJSON() ([]byte, error) {
    	json := jsoniter.ConfigCompatibleWithStandardLibrary
    	return json.Marshal(c.MapClaims)
    }
    
    // ParseWithStandardClaims - parse the token string, valid methods.
    func ParseWithStandardClaims(tokenStr string, claims *StandardClaims, key []byte) error {
    	// Key is not provided.
    	if key == nil {
    		// keyFunc was not provided, return error.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue May 09 07:53:08 GMT 2023
    - 13.9K bytes
    - Viewed (0)
  10. src/cmd/asm/main.go

    		lexer := lex.NewLexer(f)
    		parser := asm.NewParser(ctxt, architecture, lexer)
    		ctxt.DiagFunc = func(format string, args ...interface{}) {
    			diag = true
    			log.Printf(format, args...)
    		}
    		if *flags.SymABIs {
    			ok = parser.ParseSymABIs(buf)
    		} else {
    			pList := new(obj.Plist)
    			pList.Firstpc, ok = parser.Parse()
    			// reports errors to parser.Errorf
    			if ok {
    				obj.Flushplist(ctxt, pList, nil)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 2.7K bytes
    - Viewed (0)
Back to top