Skip to content

Commit 603488a

Browse files
committed
codec: updated mono generated files
1 parent 1f23000 commit 603488a

File tree

5 files changed

+24
-20
lines changed

5 files changed

+24
-20
lines changed

codec/binc.mono.generated.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ func (d *decoderBincBytes) binaryUnmarshal(_ *decFnInfo, rv reflect.Value) {
14421442

14431443
func (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

54715473
func (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
}

codec/cbor.mono.generated.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ func (d *decoderCborBytes) binaryUnmarshal(_ *decFnInfo, rv reflect.Value) {
14441444

14451445
func (d *decoderCborBytes) textUnmarshal(_ *decFnInfo, rv reflect.Value) {
14461446
tm := rv2i(rv).(encoding.TextUnmarshaler)
1447-
fnerr := tm.UnmarshalText(bytesOk(d.d.DecodeStringAsBytes()))
1447+
fnerr := tm.UnmarshalText(bytesOKs(d.d.DecodeStringAsBytes()))
14481448
halt.onerror(fnerr)
14491449
}
14501450

@@ -3593,7 +3593,7 @@ func (d *cborDecDriverBytes) decodeTime(xtag uint64) (t time.Time) {
35933593
switch xtag {
35943594
case 0:
35953595
var err error
3596-
t, err = time.Parse(time.RFC3339, stringView(bytesOk(d.DecodeStringAsBytes())))
3596+
t, err = time.Parse(time.RFC3339, stringView(bytesOKs(d.DecodeStringAsBytes())))
35973597
halt.onerror(err)
35983598
case 1:
35993599
f1, f2 := math.Modf(d.DecodeFloat64())
@@ -5323,7 +5323,7 @@ func (d *decoderCborIO) binaryUnmarshal(_ *decFnInfo, rv reflect.Value) {
53235323

53245324
func (d *decoderCborIO) textUnmarshal(_ *decFnInfo, rv reflect.Value) {
53255325
tm := rv2i(rv).(encoding.TextUnmarshaler)
5326-
fnerr := tm.UnmarshalText(bytesOk(d.d.DecodeStringAsBytes()))
5326+
fnerr := tm.UnmarshalText(bytesOKs(d.d.DecodeStringAsBytes()))
53275327
halt.onerror(fnerr)
53285328
}
53295329

@@ -7472,7 +7472,7 @@ func (d *cborDecDriverIO) decodeTime(xtag uint64) (t time.Time) {
74727472
switch xtag {
74737473
case 0:
74747474
var err error
7475-
t, err = time.Parse(time.RFC3339, stringView(bytesOk(d.DecodeStringAsBytes())))
7475+
t, err = time.Parse(time.RFC3339, stringView(bytesOKs(d.DecodeStringAsBytes())))
74767476
halt.onerror(err)
74777477
case 1:
74787478
f1, f2 := math.Modf(d.DecodeFloat64())

codec/json.mono.generated.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,7 @@ func (d *decoderJsonBytes) binaryUnmarshal(_ *decFnInfo, rv reflect.Value) {
14541454

14551455
func (d *decoderJsonBytes) textUnmarshal(_ *decFnInfo, rv reflect.Value) {
14561456
tm := rv2i(rv).(encoding.TextUnmarshaler)
1457-
fnerr := tm.UnmarshalText(bytesOk(d.d.DecodeStringAsBytes()))
1457+
fnerr := tm.UnmarshalText(bytesOKs(d.d.DecodeStringAsBytes()))
14581458
halt.onerror(fnerr)
14591459
}
14601460

@@ -3102,15 +3102,15 @@ func (e *jsonEncDriverBytes) writeIndent() {
31023102
x := int(e.di) * int(e.dl)
31033103
if e.di < 0 {
31043104
x = -x
3105-
for x > jsonSpacesOrTabsLen {
3105+
for x > len(jsonTabs) {
31063106
e.w.writeb(jsonTabs[:])
3107-
x -= jsonSpacesOrTabsLen
3107+
x -= len(jsonTabs)
31083108
}
31093109
e.w.writeb(jsonTabs[:x])
31103110
} else {
3111-
for x > jsonSpacesOrTabsLen {
3111+
for x > len(jsonSpaces) {
31123112
e.w.writeb(jsonSpaces[:])
3113-
x -= jsonSpacesOrTabsLen
3113+
x -= len(jsonSpaces)
31143114
}
31153115
e.w.writeb(jsonSpaces[:x])
31163116
}
@@ -5475,7 +5475,7 @@ func (d *decoderJsonIO) binaryUnmarshal(_ *decFnInfo, rv reflect.Value) {
54755475

54765476
func (d *decoderJsonIO) textUnmarshal(_ *decFnInfo, rv reflect.Value) {
54775477
tm := rv2i(rv).(encoding.TextUnmarshaler)
5478-
fnerr := tm.UnmarshalText(bytesOk(d.d.DecodeStringAsBytes()))
5478+
fnerr := tm.UnmarshalText(bytesOKs(d.d.DecodeStringAsBytes()))
54795479
halt.onerror(fnerr)
54805480
}
54815481

@@ -7123,15 +7123,15 @@ func (e *jsonEncDriverIO) writeIndent() {
71237123
x := int(e.di) * int(e.dl)
71247124
if e.di < 0 {
71257125
x = -x
7126-
for x > jsonSpacesOrTabsLen {
7126+
for x > len(jsonTabs) {
71277127
e.w.writeb(jsonTabs[:])
7128-
x -= jsonSpacesOrTabsLen
7128+
x -= len(jsonTabs)
71297129
}
71307130
e.w.writeb(jsonTabs[:x])
71317131
} else {
7132-
for x > jsonSpacesOrTabsLen {
7132+
for x > len(jsonSpaces) {
71337133
e.w.writeb(jsonSpaces[:])
7134-
x -= jsonSpacesOrTabsLen
7134+
x -= len(jsonSpaces)
71357135
}
71367136
e.w.writeb(jsonSpaces[:x])
71377137
}

codec/msgpack.mono.generated.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,7 +1443,7 @@ func (d *decoderMsgpackBytes) binaryUnmarshal(_ *decFnInfo, rv reflect.Value) {
14431443

14441444
func (d *decoderMsgpackBytes) textUnmarshal(_ *decFnInfo, rv reflect.Value) {
14451445
tm := rv2i(rv).(encoding.TextUnmarshaler)
1446-
fnerr := tm.UnmarshalText(bytesOk(d.d.DecodeStringAsBytes()))
1446+
fnerr := tm.UnmarshalText(bytesOKs(d.d.DecodeStringAsBytes()))
14471447
halt.onerror(fnerr)
14481448
}
14491449

@@ -5417,7 +5417,7 @@ func (d *decoderMsgpackIO) binaryUnmarshal(_ *decFnInfo, rv reflect.Value) {
54175417

54185418
func (d *decoderMsgpackIO) textUnmarshal(_ *decFnInfo, rv reflect.Value) {
54195419
tm := rv2i(rv).(encoding.TextUnmarshaler)
5420-
fnerr := tm.UnmarshalText(bytesOk(d.d.DecodeStringAsBytes()))
5420+
fnerr := tm.UnmarshalText(bytesOKs(d.d.DecodeStringAsBytes()))
54215421
halt.onerror(fnerr)
54225422
}
54235423

codec/simple.mono.generated.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ func (d *decoderSimpleBytes) binaryUnmarshal(_ *decFnInfo, rv reflect.Value) {
14421442

14431443
func (d *decoderSimpleBytes) 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

@@ -5159,7 +5159,7 @@ func (d *decoderSimpleIO) binaryUnmarshal(_ *decFnInfo, rv reflect.Value) {
51595159

51605160
func (d *decoderSimpleIO) textUnmarshal(_ *decFnInfo, rv reflect.Value) {
51615161
tm := rv2i(rv).(encoding.TextUnmarshaler)
5162-
fnerr := tm.UnmarshalText(bytesOk(d.d.DecodeStringAsBytes()))
5162+
fnerr := tm.UnmarshalText(bytesOKs(d.d.DecodeStringAsBytes()))
51635163
halt.onerror(fnerr)
51645164
}
51655165

0 commit comments

Comments
 (0)