public static String deserializeString(ByteBuffer inputBuffer, Charset charset) {
    int size = inputBuffer.getInt();
    byte[] value = new byte[size];
    inputBuffer.get(value);
    return new String(value, charset);
  }
Deserializes a string from byte buffer
@param inputBuffer The input buffer to deserialize the value from
@param charset {@link Charset} to be used to decode
@return the deserialized string
ambry-utils/src/main/java/com/github/ambry/utils/Utils.java