1
0
mirror of https://github.com/golang/go synced 2024-11-08 05:36:13 -07:00
go/src/archive/tar
Joe Tsai 1d81251599 archive/tar: simplify toASCII and parseString
Use a simple []byte instead of bytes.Buffer to create a string.
Use bytes.IndexByte instead of our own for loop.

Change-Id: Ic4a1161d79017fd3af086a05c53d5f20a5f09326
Reviewed-on: https://go-review.googlesource.com/54752
Reviewed-by: Avelino <t@avelino.xxx>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
2017-08-13 02:32:28 +00:00
..
testdata archive/tar: forbid NUL character in string fields 2017-08-11 03:12:47 +00:00
common.go archive/tar: check for permissible output formats first 2017-08-11 04:39:39 +00:00
example_test.go
format.go archive/tar: implement specialized logic for USTAR format 2017-08-12 01:48:06 +00:00
reader_test.go archive/tar: forbid NUL character in string fields 2017-08-11 03:12:47 +00:00
reader.go archive/tar: fallback to pre-Go1.8 behavior on certain GNU files 2017-08-11 03:11:49 +00:00
stat_atim.go
stat_atimespec.go
stat_unix.go
strconv_test.go archive/tar: ensure input fits in octal field 2017-08-11 03:25:17 +00:00
strconv.go archive/tar: simplify toASCII and parseString 2017-08-13 02:32:28 +00:00
tar_test.go archive/tar: check for permissible output formats first 2017-08-11 04:39:39 +00:00
writer_test.go archive/tar: forbid NUL character in string fields 2017-08-11 03:12:47 +00:00
writer.go archive/tar: implement specialized logic for USTAR format 2017-08-12 01:48:06 +00:00