diff options
Diffstat (limited to 'ledger/msgp_gen.go')
-rw-r--r-- | ledger/msgp_gen.go | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/ledger/msgp_gen.go b/ledger/msgp_gen.go index b3eb7d89d..f35709100 100644 --- a/ledger/msgp_gen.go +++ b/ledger/msgp_gen.go @@ -47,14 +47,6 @@ import ( // |-----> (*) Msgsize // |-----> (*) MsgIsZero // -// storageAction -// |-----> MarshalMsg -// |-----> CanMarshalMsg -// |-----> (*) UnmarshalMsg -// |-----> (*) CanUnmarshalMsg -// |-----> Msgsize -// |-----> MsgIsZero -// // MarshalMsg implements msgp.Marshaler func (z CatchpointCatchupState) MarshalMsg(b []byte) (o []byte) { @@ -851,49 +843,3 @@ func (z *encodedBalanceRecord) Msgsize() (s int) { func (z *encodedBalanceRecord) MsgIsZero() bool { return ((*z).Address.MsgIsZero()) && ((*z).AccountData.MsgIsZero()) } - -// MarshalMsg implements msgp.Marshaler -func (z storageAction) MarshalMsg(b []byte) (o []byte) { - o = msgp.Require(b, z.Msgsize()) - o = msgp.AppendUint64(o, uint64(z)) - return -} - -func (_ storageAction) CanMarshalMsg(z interface{}) bool { - _, ok := (z).(storageAction) - if !ok { - _, ok = (z).(*storageAction) - } - return ok -} - -// UnmarshalMsg implements msgp.Unmarshaler -func (z *storageAction) UnmarshalMsg(bts []byte) (o []byte, err error) { - { - var zb0001 uint64 - zb0001, bts, err = msgp.ReadUint64Bytes(bts) - if err != nil { - err = msgp.WrapError(err) - return - } - (*z) = storageAction(zb0001) - } - o = bts - return -} - -func (_ *storageAction) CanUnmarshalMsg(z interface{}) bool { - _, ok := (z).(*storageAction) - return ok -} - -// Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message -func (z storageAction) Msgsize() (s int) { - s = msgp.Uint64Size - return -} - -// MsgIsZero returns whether this is a zero value -func (z storageAction) MsgIsZero() bool { - return z == 0 -} |