From c0e95ea18bc0fdd111d2ed2632a90f251944c0ce Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 16 Nov 2014 12:04:43 -0800 Subject: [PATCH] Add count methods to PopulatedBufferList --- .../com/limelight/nvstream/av/PopulatedBufferList.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/moonlight-common/src/com/limelight/nvstream/av/PopulatedBufferList.java b/moonlight-common/src/com/limelight/nvstream/av/PopulatedBufferList.java index f7ea9e1a..88b4b90a 100644 --- a/moonlight-common/src/com/limelight/nvstream/av/PopulatedBufferList.java +++ b/moonlight-common/src/com/limelight/nvstream/av/PopulatedBufferList.java @@ -20,6 +20,14 @@ public class PopulatedBufferList { } } + public int getPopulatedCount() { + return populatedList.size(); + } + + public int getFreeCount() { + return freeList.size(); + } + public T pollFreeObject() { return freeList.poll(); }