| 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. |
| 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. |
| 3 | |
| 4 | //go:build go1.9 && !go1.20 && !safe && !codec.safe && !appengine |
| 5 | // +build go1.9,!go1.20,!safe,!codec.safe,!appengine |
| 6 | |
| 7 | package codec |
| 8 | |
| 9 | import ( |
| 10 | _ "runtime" // needed for go linkname(s) |
| 11 | "unsafe" |
| 12 | ) |
| 13 | |
| 14 | //go:linkname growslice runtime.growslice |
| 15 | //go:noescape |
| 16 | func growslice(typ unsafe.Pointer, old unsafeSlice, cap int) unsafeSlice |