Documentation
¶
Index ¶
Constants ¶
View Source
const Eight = 8
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeaderTest ¶
type HeaderTest struct { Version int32 `hsp:"01"` TestName string `hsp:"00"` TestArray []byte S Struct Producer proto.NodeID `hsp:"02"` GenesisHash []hash.Hash `hsp:"06"` ParentHash []*hash.Hash `hsp:"03"` MerkleRoot *[]*hash.Hash `hsp:"05"` Timestamp time.Time `hsp:"04"` // contains filtered or unexported fields }
HeaderTest is a block header.
func (*HeaderTest) MarshalHash ¶
func (z *HeaderTest) MarshalHash() (o []byte, err error)
MarshalHash marshals for hash
func (*HeaderTest) Msgsize ¶
func (z *HeaderTest) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
type HeaderTest2 ¶
type HeaderTest2 struct { S Struct // position is not relevant Version2 int32 `hsp:"01"` TestName2 string `hsp:"00"` TestArray []byte Producer2 proto.NodeID `hsp:"02"` GenesisHash2 []hash.Hash `hsp:"06"` ParentHash2 []*hash.Hash `hsp:"03"` MerkleRoot2 *[]*hash.Hash `hsp:"05"` Timestamp2 time.Time `hsp:"04"` // contains filtered or unexported fields }
HeaderTest is a block header.
func (*HeaderTest2) MarshalHash ¶
func (z *HeaderTest2) MarshalHash() (o []byte, err error)
MarshalHash marshals for hash
func (*HeaderTest2) Msgsize ¶
func (z *HeaderTest2) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
type Person1 ¶
type Person1 struct { Name string Age int Address string Map map[string]int Unexported string `hsp:"-"` // this field is ignored // contains filtered or unexported fields }
func (*Person1) MarshalHash ¶
MarshalHash marshals for hash
type Person2 ¶
type Person2 struct { Name string Address string Age int Map222 map[string]int `hspack:"Map"` Unexported string `hsp:"-"` // this field is ignored // contains filtered or unexported fields }
func (*Person2) MarshalHash ¶
MarshalHash marshals for hash
Click to show internal directories.
Click to hide internal directories.