code: public static void positionToLimit(WsByteBuffer buffers[]) {
          // Verify buffers are not null.
          if (buffers != null) {
              // Loop through each buffer in the array.
              for (int i = 0; i < buffers.length; i++) {
                  // Verify each buffer in the array is not null.
                  if (buffers[i] != null) {
                      // Shift the position to the limit.
                      buffers[i].position(buffers[i].limit());
                  }
              }
          }
      }
docs: Shift the limit of each buffer of the input array to the capacity.
  
  @param buffers