forked from glycerine/sshego
-
Notifications
You must be signed in to change notification settings - Fork 0
/
user_gen.go
2308 lines (2070 loc) · 71.3 KB
/
user_gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package sshego
// NOTE: THIS FILE WAS PRODUCED BY THE
// GREENPACK CODE GENERATION TOOL (github.com/glycerine/greenpack)
// DO NOT EDIT
import (
"github.com/glycerine/greenpack/msgp"
)
// DecodeMsg implements msgp.Decodable
// We treat empty fields as if we read a Nil from the wire.
func (z *HostDb) DecodeMsg(dc *msgp.Reader) (err error) {
var sawTopNil bool
if dc.IsNil() {
sawTopNil = true
err = dc.ReadNil()
if err != nil {
return
}
dc.PushAlwaysNil()
}
var field []byte
_ = field
const maxFields0zgensym_189e87a53e58dbf2_1 = 2
// -- templateDecodeMsg starts here--
var totalEncodedFields0zgensym_189e87a53e58dbf2_1 uint32
totalEncodedFields0zgensym_189e87a53e58dbf2_1, err = dc.ReadMapHeader()
if err != nil {
return
}
encodedFieldsLeft0zgensym_189e87a53e58dbf2_1 := totalEncodedFields0zgensym_189e87a53e58dbf2_1
missingFieldsLeft0zgensym_189e87a53e58dbf2_1 := maxFields0zgensym_189e87a53e58dbf2_1 - totalEncodedFields0zgensym_189e87a53e58dbf2_1
var nextMiss0zgensym_189e87a53e58dbf2_1 int32 = -1
var found0zgensym_189e87a53e58dbf2_1 [maxFields0zgensym_189e87a53e58dbf2_1]bool
var curField0zgensym_189e87a53e58dbf2_1 string
doneWithStruct0zgensym_189e87a53e58dbf2_1:
// First fill all the encoded fields, then
// treat the remaining, missing fields, as Nil.
for encodedFieldsLeft0zgensym_189e87a53e58dbf2_1 > 0 || missingFieldsLeft0zgensym_189e87a53e58dbf2_1 > 0 {
//fmt.Printf("encodedFieldsLeft: %v, missingFieldsLeft: %v, found: '%v', fields: '%#v'\n", encodedFieldsLeft0zgensym_189e87a53e58dbf2_1, missingFieldsLeft0zgensym_189e87a53e58dbf2_1, msgp.ShowFound(found0zgensym_189e87a53e58dbf2_1[:]), decodeMsgFieldOrder0zgensym_189e87a53e58dbf2_1)
if encodedFieldsLeft0zgensym_189e87a53e58dbf2_1 > 0 {
encodedFieldsLeft0zgensym_189e87a53e58dbf2_1--
field, err = dc.ReadMapKeyPtr()
if err != nil {
return
}
curField0zgensym_189e87a53e58dbf2_1 = msgp.UnsafeString(field)
} else {
//missing fields need handling
if nextMiss0zgensym_189e87a53e58dbf2_1 < 0 {
// tell the reader to only give us Nils
// until further notice.
dc.PushAlwaysNil()
nextMiss0zgensym_189e87a53e58dbf2_1 = 0
}
for nextMiss0zgensym_189e87a53e58dbf2_1 < maxFields0zgensym_189e87a53e58dbf2_1 && (found0zgensym_189e87a53e58dbf2_1[nextMiss0zgensym_189e87a53e58dbf2_1] || decodeMsgFieldSkip0zgensym_189e87a53e58dbf2_1[nextMiss0zgensym_189e87a53e58dbf2_1]) {
nextMiss0zgensym_189e87a53e58dbf2_1++
}
if nextMiss0zgensym_189e87a53e58dbf2_1 == maxFields0zgensym_189e87a53e58dbf2_1 {
// filled all the empty fields!
break doneWithStruct0zgensym_189e87a53e58dbf2_1
}
missingFieldsLeft0zgensym_189e87a53e58dbf2_1--
curField0zgensym_189e87a53e58dbf2_1 = decodeMsgFieldOrder0zgensym_189e87a53e58dbf2_1[nextMiss0zgensym_189e87a53e58dbf2_1]
}
//fmt.Printf("switching on curField: '%v'\n", curField0zgensym_189e87a53e58dbf2_1)
switch curField0zgensym_189e87a53e58dbf2_1 {
// -- templateDecodeMsg ends here --
case "UserHomePrefix__str":
found0zgensym_189e87a53e58dbf2_1[0] = true
z.UserHomePrefix, err = dc.ReadString()
if err != nil {
return
}
case "Persist__rct":
found0zgensym_189e87a53e58dbf2_1[1] = true
const maxFields2zgensym_189e87a53e58dbf2_3 = 2
// -- templateDecodeMsg starts here--
var totalEncodedFields2zgensym_189e87a53e58dbf2_3 uint32
totalEncodedFields2zgensym_189e87a53e58dbf2_3, err = dc.ReadMapHeader()
if err != nil {
return
}
encodedFieldsLeft2zgensym_189e87a53e58dbf2_3 := totalEncodedFields2zgensym_189e87a53e58dbf2_3
missingFieldsLeft2zgensym_189e87a53e58dbf2_3 := maxFields2zgensym_189e87a53e58dbf2_3 - totalEncodedFields2zgensym_189e87a53e58dbf2_3
var nextMiss2zgensym_189e87a53e58dbf2_3 int32 = -1
var found2zgensym_189e87a53e58dbf2_3 [maxFields2zgensym_189e87a53e58dbf2_3]bool
var curField2zgensym_189e87a53e58dbf2_3 string
doneWithStruct2zgensym_189e87a53e58dbf2_3:
// First fill all the encoded fields, then
// treat the remaining, missing fields, as Nil.
for encodedFieldsLeft2zgensym_189e87a53e58dbf2_3 > 0 || missingFieldsLeft2zgensym_189e87a53e58dbf2_3 > 0 {
//fmt.Printf("encodedFieldsLeft: %v, missingFieldsLeft: %v, found: '%v', fields: '%#v'\n", encodedFieldsLeft2zgensym_189e87a53e58dbf2_3, missingFieldsLeft2zgensym_189e87a53e58dbf2_3, msgp.ShowFound(found2zgensym_189e87a53e58dbf2_3[:]), decodeMsgFieldOrder2zgensym_189e87a53e58dbf2_3)
if encodedFieldsLeft2zgensym_189e87a53e58dbf2_3 > 0 {
encodedFieldsLeft2zgensym_189e87a53e58dbf2_3--
field, err = dc.ReadMapKeyPtr()
if err != nil {
return
}
curField2zgensym_189e87a53e58dbf2_3 = msgp.UnsafeString(field)
} else {
//missing fields need handling
if nextMiss2zgensym_189e87a53e58dbf2_3 < 0 {
// tell the reader to only give us Nils
// until further notice.
dc.PushAlwaysNil()
nextMiss2zgensym_189e87a53e58dbf2_3 = 0
}
for nextMiss2zgensym_189e87a53e58dbf2_3 < maxFields2zgensym_189e87a53e58dbf2_3 && (found2zgensym_189e87a53e58dbf2_3[nextMiss2zgensym_189e87a53e58dbf2_3] || decodeMsgFieldSkip2zgensym_189e87a53e58dbf2_3[nextMiss2zgensym_189e87a53e58dbf2_3]) {
nextMiss2zgensym_189e87a53e58dbf2_3++
}
if nextMiss2zgensym_189e87a53e58dbf2_3 == maxFields2zgensym_189e87a53e58dbf2_3 {
// filled all the empty fields!
break doneWithStruct2zgensym_189e87a53e58dbf2_3
}
missingFieldsLeft2zgensym_189e87a53e58dbf2_3--
curField2zgensym_189e87a53e58dbf2_3 = decodeMsgFieldOrder2zgensym_189e87a53e58dbf2_3[nextMiss2zgensym_189e87a53e58dbf2_3]
}
//fmt.Printf("switching on curField: '%v'\n", curField2zgensym_189e87a53e58dbf2_3)
switch curField2zgensym_189e87a53e58dbf2_3 {
// -- templateDecodeMsg ends here --
case "Users_zid00_ptr":
found2zgensym_189e87a53e58dbf2_3[0] = true
if dc.IsNil() {
err = dc.ReadNil()
if err != nil {
return
}
if z.Persist.Users != nil {
dc.PushAlwaysNil()
err = z.Persist.Users.DecodeMsg(dc)
if err != nil {
return
}
dc.PopAlwaysNil()
}
} else {
// not Nil, we have something to read
if z.Persist.Users == nil {
z.Persist.Users = new(AtomicUserMap)
}
err = z.Persist.Users.DecodeMsg(dc)
if err != nil {
return
}
}
case "HostPrivateKeyPath_zid01_str":
found2zgensym_189e87a53e58dbf2_3[1] = true
z.Persist.HostPrivateKeyPath, err = dc.ReadString()
if err != nil {
return
}
default:
err = dc.Skip()
if err != nil {
return
}
}
}
if nextMiss2zgensym_189e87a53e58dbf2_3 != -1 {
dc.PopAlwaysNil()
}
default:
err = dc.Skip()
if err != nil {
return
}
}
}
if nextMiss0zgensym_189e87a53e58dbf2_1 != -1 {
dc.PopAlwaysNil()
}
if sawTopNil {
dc.PopAlwaysNil()
}
if p, ok := interface{}(z).(msgp.PostLoad); ok {
p.PostLoadHook()
}
return
}
// fields of HostDb
var decodeMsgFieldOrder0zgensym_189e87a53e58dbf2_1 = []string{"UserHomePrefix__str", "Persist__rct"}
var decodeMsgFieldSkip0zgensym_189e87a53e58dbf2_1 = []bool{false, false}
// fields of HostDbPersist
var decodeMsgFieldOrder2zgensym_189e87a53e58dbf2_3 = []string{"Users_zid00_ptr", "HostPrivateKeyPath_zid01_str"}
var decodeMsgFieldSkip2zgensym_189e87a53e58dbf2_3 = []bool{false, false}
// fieldsNotEmpty supports omitempty tags
func (z *HostDb) fieldsNotEmpty(isempty []bool) uint32 {
if len(isempty) == 0 {
return 2
}
var fieldsInUse uint32 = 2
isempty[0] = (len(z.UserHomePrefix) == 0) // string, omitempty
if isempty[0] {
fieldsInUse--
}
isempty[1] = false // struct values are never empty
if isempty[1] {
fieldsInUse--
}
return fieldsInUse
}
// EncodeMsg implements msgp.Encodable
func (z *HostDb) EncodeMsg(en *msgp.Writer) (err error) {
if p, ok := interface{}(z).(msgp.PreSave); ok {
p.PreSaveHook()
}
// honor the omitempty tags
var empty_zgensym_189e87a53e58dbf2_4 [2]bool
fieldsInUse_zgensym_189e87a53e58dbf2_5 := z.fieldsNotEmpty(empty_zgensym_189e87a53e58dbf2_4[:])
// map header
err = en.WriteMapHeader(fieldsInUse_zgensym_189e87a53e58dbf2_5)
if err != nil {
return err
}
if !empty_zgensym_189e87a53e58dbf2_4[0] {
// write "UserHomePrefix__str"
err = en.Append(0xb3, 0x55, 0x73, 0x65, 0x72, 0x48, 0x6f, 0x6d, 0x65, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x5f, 0x5f, 0x73, 0x74, 0x72)
if err != nil {
return err
}
err = en.WriteString(z.UserHomePrefix)
if err != nil {
return
}
}
if !empty_zgensym_189e87a53e58dbf2_4[1] {
// write "Persist__rct"
err = en.Append(0xac, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x5f, 0x5f, 0x72, 0x63, 0x74)
if err != nil {
return err
}
// honor the omitempty tags
var empty_zgensym_189e87a53e58dbf2_6 [2]bool
fieldsInUse_zgensym_189e87a53e58dbf2_7 := z.Persist.fieldsNotEmpty(empty_zgensym_189e87a53e58dbf2_6[:])
// map header
err = en.WriteMapHeader(fieldsInUse_zgensym_189e87a53e58dbf2_7)
if err != nil {
return err
}
if !empty_zgensym_189e87a53e58dbf2_6[0] {
// write "Users_zid00_ptr"
err = en.Append(0xaf, 0x55, 0x73, 0x65, 0x72, 0x73, 0x5f, 0x7a, 0x69, 0x64, 0x30, 0x30, 0x5f, 0x70, 0x74, 0x72)
if err != nil {
return err
}
if z.Persist.Users == nil {
err = en.WriteNil()
if err != nil {
return
}
} else {
err = z.Persist.Users.EncodeMsg(en)
if err != nil {
return
}
}
}
if !empty_zgensym_189e87a53e58dbf2_6[1] {
// write "HostPrivateKeyPath_zid01_str"
err = en.Append(0xbc, 0x48, 0x6f, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x74, 0x68, 0x5f, 0x7a, 0x69, 0x64, 0x30, 0x31, 0x5f, 0x73, 0x74, 0x72)
if err != nil {
return err
}
err = en.WriteString(z.Persist.HostPrivateKeyPath)
if err != nil {
return
}
}
}
return
}
// MarshalMsg implements msgp.Marshaler
func (z *HostDb) MarshalMsg(b []byte) (o []byte, err error) {
if p, ok := interface{}(z).(msgp.PreSave); ok {
p.PreSaveHook()
}
o = msgp.Require(b, z.Msgsize())
// honor the omitempty tags
var empty [2]bool
fieldsInUse := z.fieldsNotEmpty(empty[:])
o = msgp.AppendMapHeader(o, fieldsInUse)
if !empty[0] {
// string "UserHomePrefix__str"
o = append(o, 0xb3, 0x55, 0x73, 0x65, 0x72, 0x48, 0x6f, 0x6d, 0x65, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x5f, 0x5f, 0x73, 0x74, 0x72)
o = msgp.AppendString(o, z.UserHomePrefix)
}
if !empty[1] {
// string "Persist__rct"
o = append(o, 0xac, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x5f, 0x5f, 0x72, 0x63, 0x74)
// honor the omitempty tags
var empty [2]bool
fieldsInUse := z.Persist.fieldsNotEmpty(empty[:])
o = msgp.AppendMapHeader(o, fieldsInUse)
if !empty[0] {
// string "Users_zid00_ptr"
o = append(o, 0xaf, 0x55, 0x73, 0x65, 0x72, 0x73, 0x5f, 0x7a, 0x69, 0x64, 0x30, 0x30, 0x5f, 0x70, 0x74, 0x72)
if z.Persist.Users == nil {
o = msgp.AppendNil(o)
} else {
o, err = z.Persist.Users.MarshalMsg(o)
if err != nil {
return
}
}
}
if !empty[1] {
// string "HostPrivateKeyPath_zid01_str"
o = append(o, 0xbc, 0x48, 0x6f, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x74, 0x68, 0x5f, 0x7a, 0x69, 0x64, 0x30, 0x31, 0x5f, 0x73, 0x74, 0x72)
o = msgp.AppendString(o, z.Persist.HostPrivateKeyPath)
}
}
return
}
// UnmarshalMsg implements msgp.Unmarshaler
func (z *HostDb) UnmarshalMsg(bts []byte) (o []byte, err error) {
return z.UnmarshalMsgWithCfg(bts, nil)
}
func (z *HostDb) UnmarshalMsgWithCfg(bts []byte, cfg *msgp.RuntimeConfig) (o []byte, err error) {
var nbs msgp.NilBitsStack
nbs.Init(cfg)
var sawTopNil bool
if msgp.IsNil(bts) {
sawTopNil = true
bts = nbs.PushAlwaysNil(bts[1:])
}
var field []byte
_ = field
const maxFields8zgensym_189e87a53e58dbf2_9 = 2
// -- templateUnmarshalMsg starts here--
var totalEncodedFields8zgensym_189e87a53e58dbf2_9 uint32
if !nbs.AlwaysNil {
totalEncodedFields8zgensym_189e87a53e58dbf2_9, bts, err = nbs.ReadMapHeaderBytes(bts)
if err != nil {
return
}
}
encodedFieldsLeft8zgensym_189e87a53e58dbf2_9 := totalEncodedFields8zgensym_189e87a53e58dbf2_9
missingFieldsLeft8zgensym_189e87a53e58dbf2_9 := maxFields8zgensym_189e87a53e58dbf2_9 - totalEncodedFields8zgensym_189e87a53e58dbf2_9
var nextMiss8zgensym_189e87a53e58dbf2_9 int32 = -1
var found8zgensym_189e87a53e58dbf2_9 [maxFields8zgensym_189e87a53e58dbf2_9]bool
var curField8zgensym_189e87a53e58dbf2_9 string
doneWithStruct8zgensym_189e87a53e58dbf2_9:
// First fill all the encoded fields, then
// treat the remaining, missing fields, as Nil.
for encodedFieldsLeft8zgensym_189e87a53e58dbf2_9 > 0 || missingFieldsLeft8zgensym_189e87a53e58dbf2_9 > 0 {
//fmt.Printf("encodedFieldsLeft: %v, missingFieldsLeft: %v, found: '%v', fields: '%#v'\n", encodedFieldsLeft8zgensym_189e87a53e58dbf2_9, missingFieldsLeft8zgensym_189e87a53e58dbf2_9, msgp.ShowFound(found8zgensym_189e87a53e58dbf2_9[:]), unmarshalMsgFieldOrder8zgensym_189e87a53e58dbf2_9)
if encodedFieldsLeft8zgensym_189e87a53e58dbf2_9 > 0 {
encodedFieldsLeft8zgensym_189e87a53e58dbf2_9--
field, bts, err = nbs.ReadMapKeyZC(bts)
if err != nil {
return
}
curField8zgensym_189e87a53e58dbf2_9 = msgp.UnsafeString(field)
} else {
//missing fields need handling
if nextMiss8zgensym_189e87a53e58dbf2_9 < 0 {
// set bts to contain just mnil (0xc0)
bts = nbs.PushAlwaysNil(bts)
nextMiss8zgensym_189e87a53e58dbf2_9 = 0
}
for nextMiss8zgensym_189e87a53e58dbf2_9 < maxFields8zgensym_189e87a53e58dbf2_9 && (found8zgensym_189e87a53e58dbf2_9[nextMiss8zgensym_189e87a53e58dbf2_9] || unmarshalMsgFieldSkip8zgensym_189e87a53e58dbf2_9[nextMiss8zgensym_189e87a53e58dbf2_9]) {
nextMiss8zgensym_189e87a53e58dbf2_9++
}
if nextMiss8zgensym_189e87a53e58dbf2_9 == maxFields8zgensym_189e87a53e58dbf2_9 {
// filled all the empty fields!
break doneWithStruct8zgensym_189e87a53e58dbf2_9
}
missingFieldsLeft8zgensym_189e87a53e58dbf2_9--
curField8zgensym_189e87a53e58dbf2_9 = unmarshalMsgFieldOrder8zgensym_189e87a53e58dbf2_9[nextMiss8zgensym_189e87a53e58dbf2_9]
}
//fmt.Printf("switching on curField: '%v'\n", curField8zgensym_189e87a53e58dbf2_9)
switch curField8zgensym_189e87a53e58dbf2_9 {
// -- templateUnmarshalMsg ends here --
case "UserHomePrefix__str":
found8zgensym_189e87a53e58dbf2_9[0] = true
z.UserHomePrefix, bts, err = nbs.ReadStringBytes(bts)
if err != nil {
return
}
case "Persist__rct":
found8zgensym_189e87a53e58dbf2_9[1] = true
const maxFields10zgensym_189e87a53e58dbf2_11 = 2
// -- templateUnmarshalMsg starts here--
var totalEncodedFields10zgensym_189e87a53e58dbf2_11 uint32
if !nbs.AlwaysNil {
totalEncodedFields10zgensym_189e87a53e58dbf2_11, bts, err = nbs.ReadMapHeaderBytes(bts)
if err != nil {
return
}
}
encodedFieldsLeft10zgensym_189e87a53e58dbf2_11 := totalEncodedFields10zgensym_189e87a53e58dbf2_11
missingFieldsLeft10zgensym_189e87a53e58dbf2_11 := maxFields10zgensym_189e87a53e58dbf2_11 - totalEncodedFields10zgensym_189e87a53e58dbf2_11
var nextMiss10zgensym_189e87a53e58dbf2_11 int32 = -1
var found10zgensym_189e87a53e58dbf2_11 [maxFields10zgensym_189e87a53e58dbf2_11]bool
var curField10zgensym_189e87a53e58dbf2_11 string
doneWithStruct10zgensym_189e87a53e58dbf2_11:
// First fill all the encoded fields, then
// treat the remaining, missing fields, as Nil.
for encodedFieldsLeft10zgensym_189e87a53e58dbf2_11 > 0 || missingFieldsLeft10zgensym_189e87a53e58dbf2_11 > 0 {
//fmt.Printf("encodedFieldsLeft: %v, missingFieldsLeft: %v, found: '%v', fields: '%#v'\n", encodedFieldsLeft10zgensym_189e87a53e58dbf2_11, missingFieldsLeft10zgensym_189e87a53e58dbf2_11, msgp.ShowFound(found10zgensym_189e87a53e58dbf2_11[:]), unmarshalMsgFieldOrder10zgensym_189e87a53e58dbf2_11)
if encodedFieldsLeft10zgensym_189e87a53e58dbf2_11 > 0 {
encodedFieldsLeft10zgensym_189e87a53e58dbf2_11--
field, bts, err = nbs.ReadMapKeyZC(bts)
if err != nil {
return
}
curField10zgensym_189e87a53e58dbf2_11 = msgp.UnsafeString(field)
} else {
//missing fields need handling
if nextMiss10zgensym_189e87a53e58dbf2_11 < 0 {
// set bts to contain just mnil (0xc0)
bts = nbs.PushAlwaysNil(bts)
nextMiss10zgensym_189e87a53e58dbf2_11 = 0
}
for nextMiss10zgensym_189e87a53e58dbf2_11 < maxFields10zgensym_189e87a53e58dbf2_11 && (found10zgensym_189e87a53e58dbf2_11[nextMiss10zgensym_189e87a53e58dbf2_11] || unmarshalMsgFieldSkip10zgensym_189e87a53e58dbf2_11[nextMiss10zgensym_189e87a53e58dbf2_11]) {
nextMiss10zgensym_189e87a53e58dbf2_11++
}
if nextMiss10zgensym_189e87a53e58dbf2_11 == maxFields10zgensym_189e87a53e58dbf2_11 {
// filled all the empty fields!
break doneWithStruct10zgensym_189e87a53e58dbf2_11
}
missingFieldsLeft10zgensym_189e87a53e58dbf2_11--
curField10zgensym_189e87a53e58dbf2_11 = unmarshalMsgFieldOrder10zgensym_189e87a53e58dbf2_11[nextMiss10zgensym_189e87a53e58dbf2_11]
}
//fmt.Printf("switching on curField: '%v'\n", curField10zgensym_189e87a53e58dbf2_11)
switch curField10zgensym_189e87a53e58dbf2_11 {
// -- templateUnmarshalMsg ends here --
case "Users_zid00_ptr":
found10zgensym_189e87a53e58dbf2_11[0] = true
if nbs.AlwaysNil {
if z.Persist.Users != nil {
z.Persist.Users.UnmarshalMsg(msgp.OnlyNilSlice)
}
} else {
// not nbs.AlwaysNil
if msgp.IsNil(bts) {
bts = bts[1:]
if nil != z.Persist.Users {
z.Persist.Users.UnmarshalMsg(msgp.OnlyNilSlice)
}
} else {
// not nbs.AlwaysNil and not IsNil(bts): have something to read
if z.Persist.Users == nil {
z.Persist.Users = new(AtomicUserMap)
}
bts, err = z.Persist.Users.UnmarshalMsg(bts)
if err != nil {
return
}
if err != nil {
return
}
}
}
case "HostPrivateKeyPath_zid01_str":
found10zgensym_189e87a53e58dbf2_11[1] = true
z.Persist.HostPrivateKeyPath, bts, err = nbs.ReadStringBytes(bts)
if err != nil {
return
}
default:
bts, err = msgp.Skip(bts)
if err != nil {
return
}
}
}
if nextMiss10zgensym_189e87a53e58dbf2_11 != -1 {
bts = nbs.PopAlwaysNil()
}
default:
bts, err = msgp.Skip(bts)
if err != nil {
return
}
}
}
if nextMiss8zgensym_189e87a53e58dbf2_9 != -1 {
bts = nbs.PopAlwaysNil()
}
if sawTopNil {
bts = nbs.PopAlwaysNil()
}
o = bts
if p, ok := interface{}(z).(msgp.PostLoad); ok {
p.PostLoadHook()
}
return
}
// fields of HostDb
var unmarshalMsgFieldOrder8zgensym_189e87a53e58dbf2_9 = []string{"UserHomePrefix__str", "Persist__rct"}
var unmarshalMsgFieldSkip8zgensym_189e87a53e58dbf2_9 = []bool{false, false}
// fields of HostDbPersist
var unmarshalMsgFieldOrder10zgensym_189e87a53e58dbf2_11 = []string{"Users_zid00_ptr", "HostPrivateKeyPath_zid01_str"}
var unmarshalMsgFieldSkip10zgensym_189e87a53e58dbf2_11 = []bool{false, false}
// Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (z *HostDb) Msgsize() (s int) {
s = 1 + 20 + msgp.StringPrefixSize + len(z.UserHomePrefix) + 13 + 1 + 16
if z.Persist.Users == nil {
s += msgp.NilSize
} else {
s += z.Persist.Users.Msgsize()
}
s += 29 + msgp.StringPrefixSize + len(z.Persist.HostPrivateKeyPath)
return
}
// DecodeMsg implements msgp.Decodable
// We treat empty fields as if we read a Nil from the wire.
func (z *HostDbPersist) DecodeMsg(dc *msgp.Reader) (err error) {
var sawTopNil bool
if dc.IsNil() {
sawTopNil = true
err = dc.ReadNil()
if err != nil {
return
}
dc.PushAlwaysNil()
}
var field []byte
_ = field
const maxFields12zgensym_189e87a53e58dbf2_13 = 2
// -- templateDecodeMsg starts here--
var totalEncodedFields12zgensym_189e87a53e58dbf2_13 uint32
totalEncodedFields12zgensym_189e87a53e58dbf2_13, err = dc.ReadMapHeader()
if err != nil {
return
}
encodedFieldsLeft12zgensym_189e87a53e58dbf2_13 := totalEncodedFields12zgensym_189e87a53e58dbf2_13
missingFieldsLeft12zgensym_189e87a53e58dbf2_13 := maxFields12zgensym_189e87a53e58dbf2_13 - totalEncodedFields12zgensym_189e87a53e58dbf2_13
var nextMiss12zgensym_189e87a53e58dbf2_13 int32 = -1
var found12zgensym_189e87a53e58dbf2_13 [maxFields12zgensym_189e87a53e58dbf2_13]bool
var curField12zgensym_189e87a53e58dbf2_13 string
doneWithStruct12zgensym_189e87a53e58dbf2_13:
// First fill all the encoded fields, then
// treat the remaining, missing fields, as Nil.
for encodedFieldsLeft12zgensym_189e87a53e58dbf2_13 > 0 || missingFieldsLeft12zgensym_189e87a53e58dbf2_13 > 0 {
//fmt.Printf("encodedFieldsLeft: %v, missingFieldsLeft: %v, found: '%v', fields: '%#v'\n", encodedFieldsLeft12zgensym_189e87a53e58dbf2_13, missingFieldsLeft12zgensym_189e87a53e58dbf2_13, msgp.ShowFound(found12zgensym_189e87a53e58dbf2_13[:]), decodeMsgFieldOrder12zgensym_189e87a53e58dbf2_13)
if encodedFieldsLeft12zgensym_189e87a53e58dbf2_13 > 0 {
encodedFieldsLeft12zgensym_189e87a53e58dbf2_13--
field, err = dc.ReadMapKeyPtr()
if err != nil {
return
}
curField12zgensym_189e87a53e58dbf2_13 = msgp.UnsafeString(field)
} else {
//missing fields need handling
if nextMiss12zgensym_189e87a53e58dbf2_13 < 0 {
// tell the reader to only give us Nils
// until further notice.
dc.PushAlwaysNil()
nextMiss12zgensym_189e87a53e58dbf2_13 = 0
}
for nextMiss12zgensym_189e87a53e58dbf2_13 < maxFields12zgensym_189e87a53e58dbf2_13 && (found12zgensym_189e87a53e58dbf2_13[nextMiss12zgensym_189e87a53e58dbf2_13] || decodeMsgFieldSkip12zgensym_189e87a53e58dbf2_13[nextMiss12zgensym_189e87a53e58dbf2_13]) {
nextMiss12zgensym_189e87a53e58dbf2_13++
}
if nextMiss12zgensym_189e87a53e58dbf2_13 == maxFields12zgensym_189e87a53e58dbf2_13 {
// filled all the empty fields!
break doneWithStruct12zgensym_189e87a53e58dbf2_13
}
missingFieldsLeft12zgensym_189e87a53e58dbf2_13--
curField12zgensym_189e87a53e58dbf2_13 = decodeMsgFieldOrder12zgensym_189e87a53e58dbf2_13[nextMiss12zgensym_189e87a53e58dbf2_13]
}
//fmt.Printf("switching on curField: '%v'\n", curField12zgensym_189e87a53e58dbf2_13)
switch curField12zgensym_189e87a53e58dbf2_13 {
// -- templateDecodeMsg ends here --
case "Users_zid00_ptr":
found12zgensym_189e87a53e58dbf2_13[0] = true
if dc.IsNil() {
err = dc.ReadNil()
if err != nil {
return
}
if z.Users != nil {
dc.PushAlwaysNil()
err = z.Users.DecodeMsg(dc)
if err != nil {
return
}
dc.PopAlwaysNil()
}
} else {
// not Nil, we have something to read
if z.Users == nil {
z.Users = new(AtomicUserMap)
}
err = z.Users.DecodeMsg(dc)
if err != nil {
return
}
}
case "HostPrivateKeyPath_zid01_str":
found12zgensym_189e87a53e58dbf2_13[1] = true
z.HostPrivateKeyPath, err = dc.ReadString()
if err != nil {
return
}
default:
err = dc.Skip()
if err != nil {
return
}
}
}
if nextMiss12zgensym_189e87a53e58dbf2_13 != -1 {
dc.PopAlwaysNil()
}
if sawTopNil {
dc.PopAlwaysNil()
}
if p, ok := interface{}(z).(msgp.PostLoad); ok {
p.PostLoadHook()
}
return
}
// fields of HostDbPersist
var decodeMsgFieldOrder12zgensym_189e87a53e58dbf2_13 = []string{"Users_zid00_ptr", "HostPrivateKeyPath_zid01_str"}
var decodeMsgFieldSkip12zgensym_189e87a53e58dbf2_13 = []bool{false, false}
// fieldsNotEmpty supports omitempty tags
func (z *HostDbPersist) fieldsNotEmpty(isempty []bool) uint32 {
if len(isempty) == 0 {
return 2
}
var fieldsInUse uint32 = 2
isempty[0] = (z.Users == nil) // pointer, omitempty
if isempty[0] {
fieldsInUse--
}
isempty[1] = (len(z.HostPrivateKeyPath) == 0) // string, omitempty
if isempty[1] {
fieldsInUse--
}
return fieldsInUse
}
// EncodeMsg implements msgp.Encodable
func (z *HostDbPersist) EncodeMsg(en *msgp.Writer) (err error) {
if p, ok := interface{}(z).(msgp.PreSave); ok {
p.PreSaveHook()
}
// honor the omitempty tags
var empty_zgensym_189e87a53e58dbf2_14 [2]bool
fieldsInUse_zgensym_189e87a53e58dbf2_15 := z.fieldsNotEmpty(empty_zgensym_189e87a53e58dbf2_14[:])
// map header
err = en.WriteMapHeader(fieldsInUse_zgensym_189e87a53e58dbf2_15)
if err != nil {
return err
}
if !empty_zgensym_189e87a53e58dbf2_14[0] {
// write "Users_zid00_ptr"
err = en.Append(0xaf, 0x55, 0x73, 0x65, 0x72, 0x73, 0x5f, 0x7a, 0x69, 0x64, 0x30, 0x30, 0x5f, 0x70, 0x74, 0x72)
if err != nil {
return err
}
if z.Users == nil {
err = en.WriteNil()
if err != nil {
return
}
} else {
err = z.Users.EncodeMsg(en)
if err != nil {
return
}
}
}
if !empty_zgensym_189e87a53e58dbf2_14[1] {
// write "HostPrivateKeyPath_zid01_str"
err = en.Append(0xbc, 0x48, 0x6f, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x74, 0x68, 0x5f, 0x7a, 0x69, 0x64, 0x30, 0x31, 0x5f, 0x73, 0x74, 0x72)
if err != nil {
return err
}
err = en.WriteString(z.HostPrivateKeyPath)
if err != nil {
return
}
}
return
}
// MarshalMsg implements msgp.Marshaler
func (z *HostDbPersist) MarshalMsg(b []byte) (o []byte, err error) {
if p, ok := interface{}(z).(msgp.PreSave); ok {
p.PreSaveHook()
}
o = msgp.Require(b, z.Msgsize())
// honor the omitempty tags
var empty [2]bool
fieldsInUse := z.fieldsNotEmpty(empty[:])
o = msgp.AppendMapHeader(o, fieldsInUse)
if !empty[0] {
// string "Users_zid00_ptr"
o = append(o, 0xaf, 0x55, 0x73, 0x65, 0x72, 0x73, 0x5f, 0x7a, 0x69, 0x64, 0x30, 0x30, 0x5f, 0x70, 0x74, 0x72)
if z.Users == nil {
o = msgp.AppendNil(o)
} else {
o, err = z.Users.MarshalMsg(o)
if err != nil {
return
}
}
}
if !empty[1] {
// string "HostPrivateKeyPath_zid01_str"
o = append(o, 0xbc, 0x48, 0x6f, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x74, 0x68, 0x5f, 0x7a, 0x69, 0x64, 0x30, 0x31, 0x5f, 0x73, 0x74, 0x72)
o = msgp.AppendString(o, z.HostPrivateKeyPath)
}
return
}
// UnmarshalMsg implements msgp.Unmarshaler
func (z *HostDbPersist) UnmarshalMsg(bts []byte) (o []byte, err error) {
return z.UnmarshalMsgWithCfg(bts, nil)
}
func (z *HostDbPersist) UnmarshalMsgWithCfg(bts []byte, cfg *msgp.RuntimeConfig) (o []byte, err error) {
var nbs msgp.NilBitsStack
nbs.Init(cfg)
var sawTopNil bool
if msgp.IsNil(bts) {
sawTopNil = true
bts = nbs.PushAlwaysNil(bts[1:])
}
var field []byte
_ = field
const maxFields16zgensym_189e87a53e58dbf2_17 = 2
// -- templateUnmarshalMsg starts here--
var totalEncodedFields16zgensym_189e87a53e58dbf2_17 uint32
if !nbs.AlwaysNil {
totalEncodedFields16zgensym_189e87a53e58dbf2_17, bts, err = nbs.ReadMapHeaderBytes(bts)
if err != nil {
return
}
}
encodedFieldsLeft16zgensym_189e87a53e58dbf2_17 := totalEncodedFields16zgensym_189e87a53e58dbf2_17
missingFieldsLeft16zgensym_189e87a53e58dbf2_17 := maxFields16zgensym_189e87a53e58dbf2_17 - totalEncodedFields16zgensym_189e87a53e58dbf2_17
var nextMiss16zgensym_189e87a53e58dbf2_17 int32 = -1
var found16zgensym_189e87a53e58dbf2_17 [maxFields16zgensym_189e87a53e58dbf2_17]bool
var curField16zgensym_189e87a53e58dbf2_17 string
doneWithStruct16zgensym_189e87a53e58dbf2_17:
// First fill all the encoded fields, then
// treat the remaining, missing fields, as Nil.
for encodedFieldsLeft16zgensym_189e87a53e58dbf2_17 > 0 || missingFieldsLeft16zgensym_189e87a53e58dbf2_17 > 0 {
//fmt.Printf("encodedFieldsLeft: %v, missingFieldsLeft: %v, found: '%v', fields: '%#v'\n", encodedFieldsLeft16zgensym_189e87a53e58dbf2_17, missingFieldsLeft16zgensym_189e87a53e58dbf2_17, msgp.ShowFound(found16zgensym_189e87a53e58dbf2_17[:]), unmarshalMsgFieldOrder16zgensym_189e87a53e58dbf2_17)
if encodedFieldsLeft16zgensym_189e87a53e58dbf2_17 > 0 {
encodedFieldsLeft16zgensym_189e87a53e58dbf2_17--
field, bts, err = nbs.ReadMapKeyZC(bts)
if err != nil {
return
}
curField16zgensym_189e87a53e58dbf2_17 = msgp.UnsafeString(field)
} else {
//missing fields need handling
if nextMiss16zgensym_189e87a53e58dbf2_17 < 0 {
// set bts to contain just mnil (0xc0)
bts = nbs.PushAlwaysNil(bts)
nextMiss16zgensym_189e87a53e58dbf2_17 = 0
}
for nextMiss16zgensym_189e87a53e58dbf2_17 < maxFields16zgensym_189e87a53e58dbf2_17 && (found16zgensym_189e87a53e58dbf2_17[nextMiss16zgensym_189e87a53e58dbf2_17] || unmarshalMsgFieldSkip16zgensym_189e87a53e58dbf2_17[nextMiss16zgensym_189e87a53e58dbf2_17]) {
nextMiss16zgensym_189e87a53e58dbf2_17++
}
if nextMiss16zgensym_189e87a53e58dbf2_17 == maxFields16zgensym_189e87a53e58dbf2_17 {
// filled all the empty fields!
break doneWithStruct16zgensym_189e87a53e58dbf2_17
}
missingFieldsLeft16zgensym_189e87a53e58dbf2_17--
curField16zgensym_189e87a53e58dbf2_17 = unmarshalMsgFieldOrder16zgensym_189e87a53e58dbf2_17[nextMiss16zgensym_189e87a53e58dbf2_17]
}
//fmt.Printf("switching on curField: '%v'\n", curField16zgensym_189e87a53e58dbf2_17)
switch curField16zgensym_189e87a53e58dbf2_17 {
// -- templateUnmarshalMsg ends here --
case "Users_zid00_ptr":
found16zgensym_189e87a53e58dbf2_17[0] = true
if nbs.AlwaysNil {
if z.Users != nil {
z.Users.UnmarshalMsg(msgp.OnlyNilSlice)
}
} else {
// not nbs.AlwaysNil
if msgp.IsNil(bts) {
bts = bts[1:]
if nil != z.Users {
z.Users.UnmarshalMsg(msgp.OnlyNilSlice)
}
} else {
// not nbs.AlwaysNil and not IsNil(bts): have something to read
if z.Users == nil {
z.Users = new(AtomicUserMap)
}
bts, err = z.Users.UnmarshalMsg(bts)
if err != nil {
return
}
if err != nil {
return
}
}
}
case "HostPrivateKeyPath_zid01_str":
found16zgensym_189e87a53e58dbf2_17[1] = true
z.HostPrivateKeyPath, bts, err = nbs.ReadStringBytes(bts)
if err != nil {
return
}
default:
bts, err = msgp.Skip(bts)
if err != nil {
return
}
}
}
if nextMiss16zgensym_189e87a53e58dbf2_17 != -1 {
bts = nbs.PopAlwaysNil()
}
if sawTopNil {
bts = nbs.PopAlwaysNil()
}
o = bts
if p, ok := interface{}(z).(msgp.PostLoad); ok {
p.PostLoadHook()
}
return
}
// fields of HostDbPersist
var unmarshalMsgFieldOrder16zgensym_189e87a53e58dbf2_17 = []string{"Users_zid00_ptr", "HostPrivateKeyPath_zid01_str"}
var unmarshalMsgFieldSkip16zgensym_189e87a53e58dbf2_17 = []bool{false, false}
// Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (z *HostDbPersist) Msgsize() (s int) {
s = 1 + 16
if z.Users == nil {
s += msgp.NilSize
} else {
s += z.Users.Msgsize()
}
s += 29 + msgp.StringPrefixSize + len(z.HostPrivateKeyPath)
return
}
// DecodeMsg implements msgp.Decodable
// We treat empty fields as if we read a Nil from the wire.
func (z *LoginRecord) DecodeMsg(dc *msgp.Reader) (err error) {
var sawTopNil bool
if dc.IsNil() {
sawTopNil = true
err = dc.ReadNil()
if err != nil {
return
}
dc.PushAlwaysNil()
}
var field []byte
_ = field
const maxFields18zgensym_189e87a53e58dbf2_19 = 5
// -- templateDecodeMsg starts here--
var totalEncodedFields18zgensym_189e87a53e58dbf2_19 uint32
totalEncodedFields18zgensym_189e87a53e58dbf2_19, err = dc.ReadMapHeader()
if err != nil {
return
}
encodedFieldsLeft18zgensym_189e87a53e58dbf2_19 := totalEncodedFields18zgensym_189e87a53e58dbf2_19
missingFieldsLeft18zgensym_189e87a53e58dbf2_19 := maxFields18zgensym_189e87a53e58dbf2_19 - totalEncodedFields18zgensym_189e87a53e58dbf2_19
var nextMiss18zgensym_189e87a53e58dbf2_19 int32 = -1
var found18zgensym_189e87a53e58dbf2_19 [maxFields18zgensym_189e87a53e58dbf2_19]bool
var curField18zgensym_189e87a53e58dbf2_19 string
doneWithStruct18zgensym_189e87a53e58dbf2_19:
// First fill all the encoded fields, then
// treat the remaining, missing fields, as Nil.
for encodedFieldsLeft18zgensym_189e87a53e58dbf2_19 > 0 || missingFieldsLeft18zgensym_189e87a53e58dbf2_19 > 0 {
//fmt.Printf("encodedFieldsLeft: %v, missingFieldsLeft: %v, found: '%v', fields: '%#v'\n", encodedFieldsLeft18zgensym_189e87a53e58dbf2_19, missingFieldsLeft18zgensym_189e87a53e58dbf2_19, msgp.ShowFound(found18zgensym_189e87a53e58dbf2_19[:]), decodeMsgFieldOrder18zgensym_189e87a53e58dbf2_19)
if encodedFieldsLeft18zgensym_189e87a53e58dbf2_19 > 0 {
encodedFieldsLeft18zgensym_189e87a53e58dbf2_19--
field, err = dc.ReadMapKeyPtr()
if err != nil {
return
}
curField18zgensym_189e87a53e58dbf2_19 = msgp.UnsafeString(field)
} else {
//missing fields need handling
if nextMiss18zgensym_189e87a53e58dbf2_19 < 0 {
// tell the reader to only give us Nils
// until further notice.
dc.PushAlwaysNil()
nextMiss18zgensym_189e87a53e58dbf2_19 = 0
}
for nextMiss18zgensym_189e87a53e58dbf2_19 < maxFields18zgensym_189e87a53e58dbf2_19 && (found18zgensym_189e87a53e58dbf2_19[nextMiss18zgensym_189e87a53e58dbf2_19] || decodeMsgFieldSkip18zgensym_189e87a53e58dbf2_19[nextMiss18zgensym_189e87a53e58dbf2_19]) {
nextMiss18zgensym_189e87a53e58dbf2_19++
}
if nextMiss18zgensym_189e87a53e58dbf2_19 == maxFields18zgensym_189e87a53e58dbf2_19 {
// filled all the empty fields!
break doneWithStruct18zgensym_189e87a53e58dbf2_19
}
missingFieldsLeft18zgensym_189e87a53e58dbf2_19--
curField18zgensym_189e87a53e58dbf2_19 = decodeMsgFieldOrder18zgensym_189e87a53e58dbf2_19[nextMiss18zgensym_189e87a53e58dbf2_19]
}
//fmt.Printf("switching on curField: '%v'\n", curField18zgensym_189e87a53e58dbf2_19)
switch curField18zgensym_189e87a53e58dbf2_19 {