C# 클래스 Nez.ListPool

simple static class that can be used to pool Lists
파일 보기 프로젝트 열기: lihaochen910/UnityGoapAIDemo

공개 메소드들

메소드 설명
clearCache ( ) : void

clears out the cache

free ( List obj ) : void

pushes an item back on the stack

obtain ( ) : List

pops an item off the stack if available creating a new item as necessary

trimCache ( int cacheCount ) : void

trims the cache down to cacheCount items

warmCache ( int cacheCount ) : void

warms up the cache filling it with a max of cacheCount objects

메소드 상세

clearCache() 공개 정적인 메소드

clears out the cache
public static clearCache ( ) : void
리턴 void

free() 공개 정적인 메소드

pushes an item back on the stack
public static free ( List obj ) : void
obj List Object.
리턴 void

obtain() 공개 정적인 메소드

pops an item off the stack if available creating a new item as necessary
public static obtain ( ) : List
리턴 List

trimCache() 공개 정적인 메소드

trims the cache down to cacheCount items
public static trimCache ( int cacheCount ) : void
cacheCount int Cache count.
리턴 void

warmCache() 공개 정적인 메소드

warms up the cache filling it with a max of cacheCount objects
public static warmCache ( int cacheCount ) : void
cacheCount int new cache count
리턴 void