any-type #20

Merged
sashakoshka merged 18 commits from any-type into main 2025-10-12 11:03:57 -06:00
Showing only changes of commit 19f02d6137 - Show all commits

View File

@ -424,6 +424,11 @@ func setByteArray(destination reflect.Value, value []byte) {
destination.Set(reflect.ValueOf(value))
}
// setString exepctes a settable destination
func setString(destination reflect.Value, value string) {
destination.Set(reflect.ValueOf(value))
}
// decodeAndSetInt expects a settable destination.
func decodeAndSetInt(decoder *Decoder, destination reflect.Value, bytes int) (n int, err error) {
value, nn, err := decoder.ReadIntN(bytes)