11 func (i *Integer) Read(r io.Reader) error {
12 return binary.Read(r, binary.BigEndian, i)
15 func (i *Integer) UnmarshalBinary(b []byte) error {
16 return i.Read(bytes.NewReader(b))
19 // It's perfectly fine to cast these to an int. TODO: Or is it?
20 func (i Integer) Int() int {
24 func (i Integer) Uint64() uint64 {
28 func (i Integer) Uint32() uint32 {