예제 #1
0
 /** Serializes from a ByteBuffer for a given protocol. */
 public static NameIdPair deserialize(ByteBuffer buffer, BinaryProtocol protocol) {
   return new NameIdPair(protocol.getString(buffer), LogUtils.readInt(buffer));
 }