Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for forPattern (0.19 sec)

  1. src/archive/tar/strconv_test.go

    		{math.MaxInt64, "\x80\x7f\xff\xff\xff\xff\xff\xff\xff", true},
    		{math.MinInt64, "\xff\x80\x00\x00\x00\x00\x00\x00\x00", true},
    	}
    
    	for _, v := range vectors {
    		var f formatter
    		got := make([]byte, len(v.want))
    		f.formatNumeric(got, v.in)
    		ok := (f.err == nil)
    		if ok != v.ok {
    			if v.ok {
    				t.Errorf("formatNumeric(%d): got formatting failure, want success", v.in)
    			} else {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
  2. src/archive/tar/strconv.go

    	for _, c := range s {
    		if c < 0x80 && c != 0x00 {
    			b = append(b, byte(c))
    		}
    	}
    	return string(b)
    }
    
    type parser struct {
    	err error // Last error seen
    }
    
    type formatter struct {
    	err error // Last error seen
    }
    
    // parseString parses bytes as a NUL-terminated C-style string.
    // If a NUL byte is not found then the whole slice is returned as a string.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  3. src/archive/tar/format.go

    		copy(b.toUSTAR().version(), versionUSTAR)
    	default:
    		panic("invalid format")
    	}
    
    	// Update checksum.
    	// This field is special in that it is terminated by a NULL then space.
    	var f formatter
    	field := b.toV7().chksum()
    	chksum, _ := b.computeChecksum() // Possible values are 256..128776
    	f.formatOctal(field[:7], chksum) // Never fails since 128776 < 262143
    	field[7] = ' '
    }
    
    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)
  4. src/archive/tar/reader_test.go

    			var blk block
    			sps = populateSparseMap(blk.toSparse(), sps)
    			out = append(out, blk[:]...)
    		}
    		return out
    	}
    
    	makeSparseStrings := func(sp []sparseEntry) (out []string) {
    		var f formatter
    		for _, s := range sp {
    			var b [24]byte
    			f.formatNumeric(b[:12], s.Offset)
    			f.formatNumeric(b[12:], s.Length)
    			out = append(out, string(b[:]))
    		}
    		return out
    	}
    
    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/writer.go

    )
    
    // templateV7Plus fills out the V7 fields of a block using values from hdr.
    // It also fills out fields (uname, gname, devmajor, devminor) that are
    // shared in the USTAR, PAX, and GNU formats using the provided formatters.
    //
    // The block returned is only valid until the next call to
    // templateV7Plus or writeRawFile.
    func (tw *Writer) templateV7Plus(hdr *Header, fmtStr stringFormatter, fmtNum numberFormatter) *block {
    	tw.blk.reset()
    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)
  6. api/go1.txt

    pkg fmt, func Sscan(string, ...interface{}) (int, error)
    pkg fmt, func Sscanf(string, string, ...interface{}) (int, error)
    pkg fmt, func Sscanln(string, ...interface{}) (int, error)
    pkg fmt, type Formatter interface { Format }
    pkg fmt, type Formatter interface, Format(State, int32)
    pkg fmt, type GoStringer interface { GoString }
    pkg fmt, type GoStringer interface, GoString() string
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (2)
Back to top