code: public static void clearBufferArray(WsByteBuffer[] list) {
          if (list != null) {
              for (int i = 0; i < list.length; ++i) {
                  if (list[i] != null)
                      list[i].clear();
              }
          }
      }
docs: Clear each buffer in an array of them.
  
  @param list