@@ -1442,7 +1442,7 @@ func (d *decoderBincBytes) binaryUnmarshal(_ *decFnInfo, rv reflect.Value) {
14421442
14431443func (d * decoderBincBytes ) textUnmarshal (_ * decFnInfo , rv reflect.Value ) {
14441444 tm := rv2i (rv ).(encoding.TextUnmarshaler )
1445- fnerr := tm .UnmarshalText (bytesOk (d .d .DecodeStringAsBytes ()))
1445+ fnerr := tm .UnmarshalText (bytesOKs (d .d .DecodeStringAsBytes ()))
14461446 halt .onerror (fnerr )
14471447}
14481448
@@ -3675,6 +3675,7 @@ func (d *bincDecDriverBytes) DecodeStringAsBytes() (bs []byte, state dBytesAttac
36753675 case bincVdString , bincVdByteArray :
36763676 slen = d .decLen ()
36773677 bs , cond = d .r .readxb (uint (slen ))
3678+ state = d .d .attachState (cond )
36783679 case bincVdSymbol :
36793680
36803681 var symbol uint16
@@ -3706,6 +3707,7 @@ func (d *bincDecDriverBytes) DecodeStringAsBytes() (bs []byte, state dBytesAttac
37063707 bs = d .d .detach2Bytes (bs , nil , d .d .attachState (cond ))
37073708 d .s [symbol ] = bs
37083709 }
3710+ state = dBytesDetach
37093711 default :
37103712 halt .errorf ("string/bytes - %s %x-%x/%s" , msgBadDesc , d .vd , d .vs , bincdesc (d .vd , d .vs ))
37113713 }
@@ -5470,7 +5472,7 @@ func (d *decoderBincIO) binaryUnmarshal(_ *decFnInfo, rv reflect.Value) {
54705472
54715473func (d * decoderBincIO ) textUnmarshal (_ * decFnInfo , rv reflect.Value ) {
54725474 tm := rv2i (rv ).(encoding.TextUnmarshaler )
5473- fnerr := tm .UnmarshalText (bytesOk (d .d .DecodeStringAsBytes ()))
5475+ fnerr := tm .UnmarshalText (bytesOKs (d .d .DecodeStringAsBytes ()))
54745476 halt .onerror (fnerr )
54755477}
54765478
@@ -7703,6 +7705,7 @@ func (d *bincDecDriverIO) DecodeStringAsBytes() (bs []byte, state dBytesAttachSt
77037705 case bincVdString , bincVdByteArray :
77047706 slen = d .decLen ()
77057707 bs , cond = d .r .readxb (uint (slen ))
7708+ state = d .d .attachState (cond )
77067709 case bincVdSymbol :
77077710
77087711 var symbol uint16
@@ -7734,6 +7737,7 @@ func (d *bincDecDriverIO) DecodeStringAsBytes() (bs []byte, state dBytesAttachSt
77347737 bs = d .d .detach2Bytes (bs , nil , d .d .attachState (cond ))
77357738 d .s [symbol ] = bs
77367739 }
7740+ state = dBytesDetach
77377741 default :
77387742 halt .errorf ("string/bytes - %s %x-%x/%s" , msgBadDesc , d .vd , d .vs , bincdesc (d .vd , d .vs ))
77397743 }
0 commit comments