in client/src/main/scala/com.gu.contentapi.client/thrift/ThriftDeserializer.scala [11:16]
def deserialize[T <: ThriftStruct](responseBody: Array[Byte], codec: ThriftStructCodec[T]): T = {
val bbis = new ByteArrayInputStream(responseBody)
val transport = new TIOStreamTransport(bbis)
val protocol = new TCompactProtocol(transport)
codec.decode(protocol)
}