Documentation ¶ Index ¶ type Int32 func New() *Int32 func (b *Int32) Decode(by []byte) (out []byte) func (b *Int32) DecodeOne(by []byte) *Int32 func (b *Int32) Encode() []byte func (b *Int32) Get() int32 func (b *Int32) Put(bits int32) *Int32 Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Int32 ¶ type Int32 struct { Bytes [4]byte } Int32 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() *Int32 func (*Int32) Decode ¶ func (b *Int32) Decode(by []byte) (out []byte) func (*Int32) DecodeOne ¶ func (b *Int32) DecodeOne(by []byte) *Int32 func (*Int32) Encode ¶ func (b *Int32) Encode() []byte func (*Int32) Get ¶ func (b *Int32) Get() int32 func (*Int32) Put ¶ func (b *Int32) Put(bits int32) *Int32 Source Files ¶ View all Source files int32.go Click to show internal directories. Click to hide internal directories.