code: static public int sizeOf(WsByteBuffer[] list) {
          if (null == list) {
              return 0;
          }
          int size = 0;
          for (int i = 0; i < list.length; i++) {
              if (null != list[i]) {
                  size += list[i].remaining();
              }
          }
          return size;
      }
docs: Utility method to count the total number of "used" bytes in the list of
  buffers. This would represent the size of the data if it was printed
  out.
  
  @param list
  @return int