code: private IoBuffer encodeClientBW(ClientBW clientBW) {
          final IoBuffer out = IoBuffer.allocate(5);
          out.putInt(clientBW.getBandwidth());
          out.put(clientBW.getLimitType());
          return out;
      }
docs: Encode client-side bandwidth event.
  
  @param clientBW
  Client-side bandwidth event
  @return Encoded event data