From 19f02d61373df6df15398707e2e76eed4e5a4979 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sun, 12 Oct 2025 10:43:04 -0400 Subject: [PATCH] tape: Implement setString --- tape/dynamic.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tape/dynamic.go b/tape/dynamic.go index 15f3483..9712b14 100644 --- a/tape/dynamic.go +++ b/tape/dynamic.go @@ -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)