1
0
mirror of https://github.com/fumiama/orbyte.git synced 2026-06-05 02:00:30 +08:00

feat(pbuf): add api KeepAlive

This commit is contained in:
源文雨
2025-02-25 21:06:18 +09:00
parent 4a462a1437
commit a17db441b5

View File

@@ -117,3 +117,9 @@ func (b Bytes) Slice(from, to int) Bytes {
nb.dat = b.dat[from:to]
return nb
}
// KeepAlive marks Bytes value as reachable.
func (b Bytes) KeepAlive() {
_ = b.buf
_ = b.dat
}