Files
tidb/util/bytes/bytes.go
dongxu 16d0c20fa6 util: add some comments
address review comment
2015-10-13 11:00:32 +08:00

7 lines
132 B
Go

package bytes
// CloneBytes returns a deep copy of slice b.
func CloneBytes(b []byte) []byte {
return append([]byte(nil), b...)
}