mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-21 03:52:48 +00:00
Add count methods to PopulatedBufferList
This commit is contained in:
parent
f21a81d7ac
commit
c0e95ea18b
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user