Documentation ¶ Index ¶ type Uint32 func New() *Uint32 func (b *Uint32) Decode(by []byte) (out []byte) func (b *Uint32) DecodeOne(by []byte) *Uint32 func (b *Uint32) Encode() []byte func (b *Uint32) Get() uint32 func (b *Uint32) Put(bits uint32) *Uint32 Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Uint32 ¶ type Uint32 struct { Bytes [4]byte } Uint32 is a 32 bit value that stores an int32 (used for block height). I don't think the sign is preserved but block heights are never negative except with special semantics func New ¶ func New() *Uint32 func (*Uint32) Decode ¶ func (b *Uint32) Decode(by []byte) (out []byte) func (*Uint32) DecodeOne ¶ func (b *Uint32) DecodeOne(by []byte) *Uint32 func (*Uint32) Encode ¶ func (b *Uint32) Encode() []byte func (*Uint32) Get ¶ func (b *Uint32) Get() uint32 func (*Uint32) Put ¶ func (b *Uint32) Put(bits uint32) *Uint32 Source Files ¶ View all Source files uint32.go Click to show internal directories. Click to hide internal directories.