Rectified mass diffusion serves as an important mechanism for dissolution or growth of gas bubbles under acoustic excitation with many applications in acoustical, chemical and biomedical engineering. In this paper, a general approach for predicting rectified mass diffusion phenomenon is proposed based on the equation of bubble motion with liquid compressibility. Nonuniform pressure inside gas bubbles is considered in the approach through employing a well-established framework relating with thermal effects during gas bubble oscillations. Energy dissipation mechanisms (i.e., viscous, thermal, and acoustic dissipation) and surface tension are also included in the approach. Comparing with previous analytical investigations, present approach mainly improves the predictions of rectified mass diffusion in the regions far above resonance and regions with frequencies megahertz and above. Mechanisms for the improvements are shown and discussed together with valid regions and limitations of present approach.