def uncompress()

in src/main/scala/com/gu/thrift/serializer/Compression.scala [53:63]


  def uncompress(data: ByteBuffer): ByteBuffer =
    try {
      val bos = new ByteArrayOutputStream()
      val in = new ZstdInputStream(new ByteBufferBackedInputStream(data))
      IOUtils.copy(in, bos)
      in.close()
      bos.close()
      ByteBuffer.wrap(bos.toByteArray)
    } catch {
      case e: IOException => throw new RuntimeException(e)
    }