All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.class_impls_write.ssp Maven / Gradle / Ivy

The newest version!
<%@ val cls: com.foursquare.spindle.codegen.runtime.StructLike  %>

  override def write(oprot: org.apache.thrift.protocol.TProtocol): Unit = {
    oprot.writeStructBegin(${cls.name}.${cls.tstructName})
#for (field <- cls.fields)
    if (${field.isSetName}) {
      oprot.writeFieldBegin(${cls.name}.${field.tfieldName})
<% render(field.renderType.fieldWriteTemplate, Map("renderType" -> field.renderType, "valueExpr" -> field.varName, "indent" -> "      ")) %>
      oprot.writeFieldEnd()
    }
#end
  if (com.foursquare.spindle.RuntimeHelpers.preserveUnknownFields(this)) {
    unknownFields.reverse foreach { _.write(oprot) }
  }
    oprot.writeFieldStop()
    oprot.writeStructEnd()
  }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy