API progress

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

View File

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