Refactor tag encoder to optimize buffer reuse, simplify tag marshaling, and improve event handling; enhance tests with additional coverage and example validation.

This commit is contained in:
2025-08-22 23:26:11 +01:00
parent 225f949540
commit 7d20a51508
6 changed files with 66 additions and 30 deletions

View File

@@ -74,5 +74,6 @@ func PutBytes(b []byte) {
return fmt.Sprintf("returning bytes to buffer: %p", ptr)
},
)
b = b[:0]
Put(b)
}