internal static android.text.MeasuredText obtain() { android.text.MeasuredText mt; lock (sLock) { { for (int i = sCached.Length; --i >= 0;) { if (sCached[i] != null) { mt = sCached[i]; sCached[i] = null; return(mt); } } } } mt = new android.text.MeasuredText(); return(mt); }
internal static android.text.MeasuredText obtain() { android.text.MeasuredText mt; lock (sLock) { { for (int i = sCached.Length; --i >= 0; ) { if (sCached[i] != null) { mt = sCached[i]; sCached[i] = null; return mt; } } } } mt = new android.text.MeasuredText(); return mt; }
internal static android.text.MeasuredText recycle(android.text.MeasuredText mt) { mt.mText = null; if (mt.mLen < 1000) { lock (sLock) { { for (int i = 0; i < sCached.Length; ++i) { if (sCached[i] == null) { sCached[i] = mt; mt.mText = null; break; } } } } } return(null); }