|
My Project v1
Project
|

类 | |
| class | Bucket |
Public 成员函数 | |
| ArrayCache (IEnumerable< int > bucketSizes, float minCacheRatio1, float minCacheTime1, float minCacheRatio2, float minCacheTime2) | |
| T[] | Rent (int capacity, bool clearArray) |
| void | Return (T[] array) |
Private 成员函数 | |
| void | CheckCache () |
| ArrayCache< T >.Bucket | GetBucket (int capacity) |
| void | ClearCache () |
| float | CalculateCacheRatio () |
Private 属性 | |
| object | m_lock = new object() |
| ArrayCache< T >.Bucket[] | m_buckets |
| long | m_cachedCount |
| long | m_usedCount |
| float | m_minCacheRatio1 |
| float | m_minCacheDuration1 |
| double | m_minCacheRatioLastTime1 |
| float | m_minCacheRatio2 |
| float | m_minCacheDuration2 |
| double | m_minCacheRatioLastTime2 |
| Game.ArrayCache< T >.ArrayCache | ( | IEnumerable< int > | bucketSizes, |
| float | minCacheRatio1, | ||
| float | minCacheTime1, | ||
| float | minCacheRatio2, | ||
| float | minCacheTime2 ) |

|
private |

|
private |


|
private |

|
private |

| T[] Game.ArrayCache< T >.Rent | ( | int | capacity, |
| bool | clearArray ) |


| void Game.ArrayCache< T >.Return | ( | T[] | array | ) |


|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |