SafeCopy does append(a[:0], src...).
(a, src []byte)
| 105 | |
| 106 | // SafeCopy does append(a[:0], src...). |
| 107 | func SafeCopy(a, src []byte) []byte { |
| 108 | return append(a[:0], src...) |
| 109 | } |
| 110 | |
| 111 | // Copy copies a byte slice and returns the copied slice. |
| 112 | func Copy(a []byte) []byte { |
no outgoing calls
no test coverage detected
searching dependent graphs…