mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-04 06:56:06 +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() {
|
||||
return freeList.poll();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user