- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for FormatString (0.06 sec)
-
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 }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Aug 01 14:28:42 UTC 2023 - 9K bytes - Viewed (0) -
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 }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Oct 02 14:22:59 UTC 2024 - 19.6K bytes - Viewed (0) -
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
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Feb 17 21:23:32 UTC 2023 - 602.6K bytes - Viewed (0)