stevedlawrence commented on a change in pull request #218: Implement 
dfdl:choiceLength='explicit'
URL: https://github.com/apache/incubator-daffodil/pull/218#discussion_r291320423
 
 

 ##########
 File path: 
daffodil-runtime1-unparser/src/main/scala/org/apache/daffodil/processors/unparsers/SpecifiedLength2.scala
 ##########
 @@ -460,6 +470,102 @@ class ElementUnusedUnparser(
 
 }
 
+/**
+ * This is basically a simplified version of the 
ElementUnusedUnparserSuspendableOperation.
+ * For explicit length choices, we do not need to handle length expressions, 
choiceLength is
+ * simply a non-negative integer.
+ */
+class ChoiceUnusedUnparserSuspendableOperation(
+  override val rd: ModelGroupRuntimeData,
+  targetLengthInBits: Long)
+  extends SuspendableOperation
+  with StreamSplitter
+  with SkipTheBits {
+
+  private var zlStatus_ : ZeroLengthStatus = ZeroLengthStatus.Unknown
+
+  private var maybeDOSStart : Maybe[DataOutputStream] = Maybe.Nope
+  private var maybeDOSEnd : Maybe[DataOutputStream] = Maybe.Nope
+
+
+  def captureDOSStartForChoiceUnused(state: UState): Unit = {
+    val splitter = new RegionSplitUnparser(rd)
 
 Review comment:
   Missing file for this? I don't see RegionSplitUnparser anywhere.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to