Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for FormatString (0.33 sec)

  1. src/archive/tar/strconv.go

    func (*parser) parseString(b []byte) string {
    	if i := bytes.IndexByte(b, 0); i >= 0 {
    		return string(b[:i])
    	}
    	return string(b)
    }
    
    // formatString copies s into b, NUL-terminating if possible.
    func (f *formatter) formatString(b []byte, s string) {
    	if len(s) > len(b) {
    		f.err = ErrFieldTooLong
    	}
    	copy(b, s)
    	if len(s) < len(b) {
    		b[len(s)] = 0
    	}
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  2. src/archive/tar/writer.go

    	if prefix, suffix, ok := splitUSTARPath(hdr.Name); ok {
    		namePrefix, hdr.Name = prefix, suffix
    	}
    
    	// Pack the main header.
    	var f formatter
    	blk := tw.templateV7Plus(hdr, f.formatString, f.formatOctal)
    	f.formatString(blk.toUSTAR().prefix(), namePrefix)
    	blk.setFormat(FormatUSTAR)
    	if f.err != nil {
    		return f.err // Should never happen since header is validated
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  3. api/go1.20.txt

    pkg debug/pe, const IMAGE_FILE_MACHINE_RISCV64 ideal-int #54251
    pkg encoding/xml, method (*Encoder) Close() error #53346
    pkg errors, func Join(...error) error #53435
    pkg fmt, func FormatString(State, int32) string #51668
    pkg go/ast, type File struct, FileEnd token.Pos #53202
    pkg go/ast, type File struct, FileStart token.Pos #53202
    pkg go/ast, type RangeStmt struct, Range token.Pos #50429
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Feb 17 21:23:32 GMT 2023
    - 602.6K bytes
    - Viewed (0)
Back to top