API progress

This commit is contained in:
rusefillc 2021-12-04 23:15:37 -05:00
parent e3907019b4
commit 76d55f52cf
1 changed files with 6 additions and 0 deletions

View File

@ -140,6 +140,12 @@ public class IncomingDataBuffer {
return false; // looks good! return false; // looks good!
} }
public int getPendingCount() {
synchronized (cbb) {
return cbb.length();
}
}
public void dropPending() { public void dropPending() {
// todo: when exactly do we need this logic? // todo: when exactly do we need this logic?
synchronized (cbb) { synchronized (cbb) {