···
cw := cbg.NewCborWriter(w)
···
5645
-
// t.IssueId (int64) (int64)
5646
-
if len("issueId") > 1000000 {
5647
-
return xerrors.Errorf("Value in field \"issueId\" was too long")
5650
-
if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("issueId"))); err != nil {
5653
-
if _, err := cw.WriteString(string("issueId")); err != nil {
5657
-
if t.IssueId >= 0 {
5658
-
if err := cw.WriteMajorTypeHeader(cbg.MajUnsignedInt, uint64(t.IssueId)); err != nil {
5662
-
if err := cw.WriteMajorTypeHeader(cbg.MajNegativeInt, uint64(-t.IssueId-1)); err != nil {
// t.CreatedAt (string) (string)
if len("createdAt") > 1000000 {
return xerrors.Errorf("Value in field \"createdAt\" was too long")
···
5798
-
// t.IssueId (int64) (int64)
5801
-
maj, extra, err := cr.ReadHeader()
5807
-
case cbg.MajUnsignedInt:
5808
-
extraI = int64(extra)
5810
-
return fmt.Errorf("int64 positive overflow")
5812
-
case cbg.MajNegativeInt:
5813
-
extraI = int64(extra)
5815
-
return fmt.Errorf("int64 negative overflow")
5817
-
extraI = -1 - extraI
5819
-
return fmt.Errorf("wrong type for int64 field: %d", maj)
5822
-
t.IssueId = int64(extraI)
// t.CreatedAt (string) (string)
···
cw := cbg.NewCborWriter(w)
5855
-
if t.CommentId == nil {
···
6000
-
// t.CommentId (int64) (int64)
6001
-
if t.CommentId != nil {
6003
-
if len("commentId") > 1000000 {
6004
-
return xerrors.Errorf("Value in field \"commentId\" was too long")
6007
-
if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("commentId"))); err != nil {
6010
-
if _, err := cw.WriteString(string("commentId")); err != nil {
6014
-
if t.CommentId == nil {
6015
-
if _, err := cw.Write(cbg.CborNull); err != nil {
6019
-
if *t.CommentId >= 0 {
6020
-
if err := cw.WriteMajorTypeHeader(cbg.MajUnsignedInt, uint64(*t.CommentId)); err != nil {
6024
-
if err := cw.WriteMajorTypeHeader(cbg.MajNegativeInt, uint64(-*t.CommentId-1)); err != nil {
// t.CreatedAt (string) (string)
if len("createdAt") > 1000000 {
return xerrors.Errorf("Value in field \"createdAt\" was too long")
···
t.Owner = (*string)(&sval)
6173
-
// t.CommentId (int64) (int64)
6177
-
b, err := cr.ReadByte()
6181
-
if b != cbg.CborNull[0] {
6182
-
if err := cr.UnreadByte(); err != nil {
6185
-
maj, extra, err := cr.ReadHeader()
6191
-
case cbg.MajUnsignedInt:
6192
-
extraI = int64(extra)
6194
-
return fmt.Errorf("int64 positive overflow")
6196
-
case cbg.MajNegativeInt:
6197
-
extraI = int64(extra)
6199
-
return fmt.Errorf("int64 negative overflow")
6201
-
extraI = -1 - extraI
6203
-
return fmt.Errorf("wrong type for int64 field: %d", maj)
6206
-
t.CommentId = (*int64)(&extraI)
// t.CreatedAt (string) (string)