···
cw := cbg.NewCborWriter(w)
···
5775
-
// t.IssueId (int64) (int64)
5776
-
if len("issueId") > 1000000 {
5777
-
return xerrors.Errorf("Value in field \"issueId\" was too long")
5780
-
if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("issueId"))); err != nil {
5783
-
if _, err := cw.WriteString(string("issueId")); err != nil {
5787
-
if t.IssueId >= 0 {
5788
-
if err := cw.WriteMajorTypeHeader(cbg.MajUnsignedInt, uint64(t.IssueId)); err != nil {
5792
-
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")
···
5928
-
// t.IssueId (int64) (int64)
5931
-
maj, extra, err := cr.ReadHeader()
5937
-
case cbg.MajUnsignedInt:
5938
-
extraI = int64(extra)
5940
-
return fmt.Errorf("int64 positive overflow")
5942
-
case cbg.MajNegativeInt:
5943
-
extraI = int64(extra)
5945
-
return fmt.Errorf("int64 negative overflow")
5947
-
extraI = -1 - extraI
5949
-
return fmt.Errorf("wrong type for int64 field: %d", maj)
5952
-
t.IssueId = int64(extraI)
// t.CreatedAt (string) (string)
···
cw := cbg.NewCborWriter(w)
5985
-
if t.CommentId == nil {
···
6130
-
// t.CommentId (int64) (int64)
6131
-
if t.CommentId != nil {
6133
-
if len("commentId") > 1000000 {
6134
-
return xerrors.Errorf("Value in field \"commentId\" was too long")
6137
-
if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("commentId"))); err != nil {
6140
-
if _, err := cw.WriteString(string("commentId")); err != nil {
6144
-
if t.CommentId == nil {
6145
-
if _, err := cw.Write(cbg.CborNull); err != nil {
6149
-
if *t.CommentId >= 0 {
6150
-
if err := cw.WriteMajorTypeHeader(cbg.MajUnsignedInt, uint64(*t.CommentId)); err != nil {
6154
-
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)
6303
-
// t.CommentId (int64) (int64)
6307
-
b, err := cr.ReadByte()
6311
-
if b != cbg.CborNull[0] {
6312
-
if err := cr.UnreadByte(); err != nil {
6315
-
maj, extra, err := cr.ReadHeader()
6321
-
case cbg.MajUnsignedInt:
6322
-
extraI = int64(extra)
6324
-
return fmt.Errorf("int64 positive overflow")
6326
-
case cbg.MajNegativeInt:
6327
-
extraI = int64(extra)
6329
-
return fmt.Errorf("int64 negative overflow")
6331
-
extraI = -1 - extraI
6333
-
return fmt.Errorf("wrong type for int64 field: %d", maj)
6336
-
t.CommentId = (*int64)(&extraI)
// t.CreatedAt (string) (string)