code: func (enc *Encoder) EncodeInt(v int32) (int, error) {
  	var b [4]byte
  	b[0] = byte(v >> 24)
  	b[1] = byte(v >> 16)
  	b[2] = byte(v >> 8)
  	b[3] = byte(v)
  
  	n, err := enc.w.Write(b[:])
  	if err != nil {
  		msg := fmt.Sprintf(errIOEncode, err.Error(), 4)
  		err := marshalError("EncodeInt", ErrIO, msg, b[:n], err)
  		return n, err
  	}
  
  	return n, nil
  }
docs: // EncodeInt writes the XDR encoded representation of the passed 32-bit signed
  // integer to the encapsulated writer and returns the number of bytes written.
  //
  // A MarshalError with an error code of ErrIO is returned if writing the data
  // fails.
  //
  // Reference:
  // 	RFC Section 4.1 - Integer
  // 	32-bit big-endian signed integer in range [-2147483648, 2147483647]