mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-10 18:06:10 +00:00
Add count methods to PopulatedBufferList
This commit is contained in:
@@ -20,6 +20,14 @@ public class PopulatedBufferList<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getPopulatedCount() {
|
||||||
|
return populatedList.size();
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getFreeCount() {
|
||||||
|
return freeList.size();
|
||||||
|
}
|
||||||
|
|
||||||
public T pollFreeObject() {
|
public T pollFreeObject() {
|
||||||
return freeList.poll();
|
return freeList.poll();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user