kaitai-struct-compiler 0.10.0-SNAPSHOT20220726.4438.57d8dc2a → 0.10.0-SNAPSHOT20220801.113415.690af1b3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kaitai-struct-compiler.js +302 -202
- package/package.json +1 -1
|
@@ -1579,6 +1579,81 @@ function $f_Lio_kaitai_struct_languages_components_CommonReads__attrValidateAll_
|
|
|
1579
1579
|
$f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_format_ValidationSpec__V(this$2, attrId, attr, valid)
|
|
1580
1580
|
}
|
|
1581
1581
|
}
|
|
1582
|
+
function $f_Lio_kaitai_struct_languages_components_ExtraAttrs__extraRawAttrForUserTypeFromBytes__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$UserTypeFromBytes__Lio_kaitai_struct_format_ConditionalSpec__sci_List($thiz, id, ut, condSpec) {
|
|
1583
|
+
$m_sci_List$();
|
|
1584
|
+
var array = [new $c_Lio_kaitai_struct_format_AttrSpec().init___sci_List__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_format_ConditionalSpec__s_Option__Lio_kaitai_struct_format_DocSpec($m_sci_Nil$(), new $c_Lio_kaitai_struct_format_RawIdentifier().init___Lio_kaitai_struct_format_Identifier(id), ut.bytes$4, condSpec, ($m_Lio_kaitai_struct_format_AttrSpec$(), $m_s_None$()), ($m_Lio_kaitai_struct_format_AttrSpec$(), $m_Lio_kaitai_struct_format_DocSpec$().EMPTY$1))];
|
|
1585
|
+
var i = (((-1) + $uI(array.length)) | 0);
|
|
1586
|
+
var result = $m_sci_Nil$();
|
|
1587
|
+
while ((i >= 0)) {
|
|
1588
|
+
var this$6 = result;
|
|
1589
|
+
var index = i;
|
|
1590
|
+
var x = array[index];
|
|
1591
|
+
result = new $c_sci_$colon$colon().init___O__sci_List(x, this$6);
|
|
1592
|
+
i = (((-1) + i) | 0)
|
|
1593
|
+
};
|
|
1594
|
+
return result
|
|
1595
|
+
}
|
|
1596
|
+
function $f_Lio_kaitai_struct_languages_components_ExtraAttrs__extraAttrsForAttribute__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_format_ConditionalSpec__sc_Iterable($thiz, id, dataType, condSpec) {
|
|
1597
|
+
if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$BytesType)) {
|
|
1598
|
+
var x2 = $as_Lio_kaitai_struct_datatype_DataType$BytesType(dataType);
|
|
1599
|
+
var x1$2 = x2.process__s_Option();
|
|
1600
|
+
var x = $m_s_None$();
|
|
1601
|
+
if ((x === x1$2)) {
|
|
1602
|
+
return $m_sci_Nil$()
|
|
1603
|
+
} else if ((x1$2 instanceof $c_s_Some)) {
|
|
1604
|
+
var rawId = new $c_Lio_kaitai_struct_format_RawIdentifier().init___Lio_kaitai_struct_format_Identifier(id);
|
|
1605
|
+
$m_sci_List$();
|
|
1606
|
+
var array = [new $c_Lio_kaitai_struct_format_AttrSpec().init___sci_List__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_format_ConditionalSpec__s_Option__Lio_kaitai_struct_format_DocSpec($m_sci_Nil$(), rawId, x2, condSpec, ($m_Lio_kaitai_struct_format_AttrSpec$(), $m_s_None$()), ($m_Lio_kaitai_struct_format_AttrSpec$(), $m_Lio_kaitai_struct_format_DocSpec$().EMPTY$1))];
|
|
1607
|
+
var i = (((-1) + $uI(array.length)) | 0);
|
|
1608
|
+
var result = $m_sci_Nil$();
|
|
1609
|
+
while ((i >= 0)) {
|
|
1610
|
+
var this$6 = result;
|
|
1611
|
+
var index = i;
|
|
1612
|
+
var x$1 = array[index];
|
|
1613
|
+
result = new $c_sci_$colon$colon().init___O__sci_List(x$1, this$6);
|
|
1614
|
+
i = (((-1) + i) | 0)
|
|
1615
|
+
};
|
|
1616
|
+
var jsx$2 = result;
|
|
1617
|
+
var jsx$1 = $thiz.extraAttrForIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__sci_List(id, condSpec.repeat$1);
|
|
1618
|
+
var this$7 = $m_sci_List$();
|
|
1619
|
+
return $as_sc_Iterable(jsx$2.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$1, this$7.ReusableCBFInstance$2))
|
|
1620
|
+
} else {
|
|
1621
|
+
throw new $c_s_MatchError().init___O(x1$2)
|
|
1622
|
+
}
|
|
1623
|
+
} else if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$UserTypeFromBytes)) {
|
|
1624
|
+
var x3 = $as_Lio_kaitai_struct_datatype_DataType$UserTypeFromBytes(dataType);
|
|
1625
|
+
var rawId$2 = new $c_Lio_kaitai_struct_format_RawIdentifier().init___Lio_kaitai_struct_format_Identifier(id);
|
|
1626
|
+
var jsx$6 = $thiz.extraRawAttrForUserTypeFromBytes__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$UserTypeFromBytes__Lio_kaitai_struct_format_ConditionalSpec__sci_List(id, x3, condSpec);
|
|
1627
|
+
var jsx$5 = $thiz.extraAttrForIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__sci_List(rawId$2, condSpec.repeat$1);
|
|
1628
|
+
var this$8 = $m_sci_List$();
|
|
1629
|
+
var jsx$4 = $as_sci_List(jsx$6.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$5, this$8.ReusableCBFInstance$2));
|
|
1630
|
+
var dataType$1 = x3.bytes$4;
|
|
1631
|
+
var jsx$3 = $f_Lio_kaitai_struct_languages_components_ExtraAttrs__extraAttrsForAttribute__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_format_ConditionalSpec__sc_Iterable($thiz, rawId$2, dataType$1, condSpec);
|
|
1632
|
+
var this$9 = $m_sci_List$();
|
|
1633
|
+
var this$10 = $as_sci_List(jsx$4.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$3, this$9.ReusableCBFInstance$2));
|
|
1634
|
+
return $as_sc_Iterable($f_sc_SeqLike__distinct__O(this$10))
|
|
1635
|
+
} else if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$SwitchType)) {
|
|
1636
|
+
var x4 = $as_Lio_kaitai_struct_datatype_DataType$SwitchType(dataType);
|
|
1637
|
+
var this$12 = x4.cases$2;
|
|
1638
|
+
var f = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this, id$1, condSpec$1) {
|
|
1639
|
+
return (function(x0$1$2) {
|
|
1640
|
+
var x0$1 = $as_T2(x0$1$2);
|
|
1641
|
+
if ((x0$1 !== null)) {
|
|
1642
|
+
var caseType = $as_Lio_kaitai_struct_datatype_DataType(x0$1.$$und2__O());
|
|
1643
|
+
return $f_Lio_kaitai_struct_languages_components_ExtraAttrs__extraAttrsForAttribute__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_format_ConditionalSpec__sc_Iterable($this, id$1, caseType, condSpec$1)
|
|
1644
|
+
} else {
|
|
1645
|
+
throw new $c_s_MatchError().init___O(x0$1)
|
|
1646
|
+
}
|
|
1647
|
+
})
|
|
1648
|
+
})($thiz, id, condSpec));
|
|
1649
|
+
var this$11 = $m_sci_Iterable$();
|
|
1650
|
+
var bf = this$11.ReusableCBFInstance$2;
|
|
1651
|
+
var this$13 = $as_sc_TraversableOnce($f_sc_TraversableLike__flatMap__F1__scg_CanBuildFrom__O(this$12, f, bf)).toList__sci_List();
|
|
1652
|
+
return $as_sc_Iterable($f_sc_SeqLike__distinct__O(this$13))
|
|
1653
|
+
} else {
|
|
1654
|
+
return $m_sci_Nil$()
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1582
1657
|
function $is_Lio_kaitai_struct_languages_components_LanguageCompilerStatic(obj) {
|
|
1583
1658
|
return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lio_kaitai_struct_languages_components_LanguageCompilerStatic)))
|
|
1584
1659
|
}
|
|
@@ -1606,16 +1681,15 @@ function $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expre
|
|
|
1606
1681
|
return $as_Lio_kaitai_struct_languages_components_LanguageCompiler($thiz).translator__Lio_kaitai_struct_translators_AbstractTranslator().translate__Lio_kaitai_struct_exprlang_Ast$expr__T(e)
|
|
1607
1682
|
}
|
|
1608
1683
|
function $f_Lio_kaitai_struct_languages_components_SingleOutputFile__results__Lio_kaitai_struct_format_ClassSpec__sci_Map($thiz, topClass) {
|
|
1609
|
-
var jsx$1 = $as_Lio_kaitai_struct_languages_components_LanguageCompiler($thiz);
|
|
1610
1684
|
var this$1 = topClass.name$1;
|
|
1611
|
-
var self =
|
|
1685
|
+
var self = $thiz.outFileName__T__T($f_sc_TraversableOnce__mkString__T__T__T__T(this$1, "", "::", ""));
|
|
1612
1686
|
var this$3 = $thiz.outHeader__Lio_kaitai_struct_StringLanguageOutputWriter();
|
|
1613
1687
|
var this$4 = this$3.sb$2;
|
|
1614
|
-
var jsx$
|
|
1615
|
-
var jsx$
|
|
1688
|
+
var jsx$2 = this$4.underlying$5.java$lang$StringBuilder$$content$f;
|
|
1689
|
+
var jsx$1 = $thiz.outImports__Lio_kaitai_struct_format_ClassSpec__T(topClass);
|
|
1616
1690
|
var this$5 = $thiz.out__Lio_kaitai_struct_StringLanguageOutputWriter();
|
|
1617
1691
|
var this$6 = this$5.sb$2;
|
|
1618
|
-
var y = ((("" + jsx$
|
|
1692
|
+
var y = ((("" + jsx$2) + jsx$1) + this$6.underlying$5.java$lang$StringBuilder$$content$f);
|
|
1619
1693
|
var array = [new $c_T2().init___O__O(self, y)];
|
|
1620
1694
|
var this$11 = new $c_scm_MapBuilder().init___sc_GenMap($m_sci_Map$EmptyMap$());
|
|
1621
1695
|
var i = 0;
|
|
@@ -3596,6 +3670,47 @@ $h_Lio_kaitai_struct_Main$.prototype = $c_Lio_kaitai_struct_Main$.prototype;
|
|
|
3596
3670
|
$c_Lio_kaitai_struct_Main$.prototype.init___ = (function() {
|
|
3597
3671
|
return this
|
|
3598
3672
|
});
|
|
3673
|
+
$c_Lio_kaitai_struct_Main$.prototype.updateConfigFromMeta__p1__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_format_MetaSpec__Lio_kaitai_struct_RuntimeConfig = (function(config, meta) {
|
|
3674
|
+
if (meta.forceDebug$1) {
|
|
3675
|
+
var opaqueTypes = config.opaqueTypes$1;
|
|
3676
|
+
var zeroCopySubstream = config.zeroCopySubstream$1;
|
|
3677
|
+
var cppConfig = config.cppConfig$1;
|
|
3678
|
+
var goPackage = config.goPackage$1;
|
|
3679
|
+
var java = config.java$1;
|
|
3680
|
+
var dotNetNamespace = config.dotNetNamespace$1;
|
|
3681
|
+
var phpNamespace = config.phpNamespace$1;
|
|
3682
|
+
var pythonPackage = config.pythonPackage$1;
|
|
3683
|
+
var nimModule = config.nimModule$1;
|
|
3684
|
+
var nimOpaque = config.nimOpaque$1;
|
|
3685
|
+
var config1 = new $c_Lio_kaitai_struct_RuntimeConfig().init___Z__Z__Z__Z__Lio_kaitai_struct_CppRuntimeConfig__T__Lio_kaitai_struct_JavaRuntimeConfig__T__T__T__T__T(false, true, opaqueTypes, zeroCopySubstream, cppConfig, goPackage, java, dotNetNamespace, phpNamespace, pythonPackage, nimModule, nimOpaque)
|
|
3686
|
+
} else {
|
|
3687
|
+
var config1 = config
|
|
3688
|
+
};
|
|
3689
|
+
var x1 = meta.zeroCopySubstream$1;
|
|
3690
|
+
if ((x1 instanceof $c_s_Some)) {
|
|
3691
|
+
var x2 = $as_s_Some(x1);
|
|
3692
|
+
var value = $uZ(x2.value$2);
|
|
3693
|
+
var x$2 = config1.autoRead$1;
|
|
3694
|
+
var x$3 = config1.readStoresPos$1;
|
|
3695
|
+
var x$4 = config1.opaqueTypes$1;
|
|
3696
|
+
var x$5 = config1.cppConfig$1;
|
|
3697
|
+
var x$6 = config1.goPackage$1;
|
|
3698
|
+
var x$7 = config1.java$1;
|
|
3699
|
+
var x$8 = config1.dotNetNamespace$1;
|
|
3700
|
+
var x$9 = config1.phpNamespace$1;
|
|
3701
|
+
var x$10 = config1.pythonPackage$1;
|
|
3702
|
+
var x$11 = config1.nimModule$1;
|
|
3703
|
+
var x$12 = config1.nimOpaque$1;
|
|
3704
|
+
var config2 = new $c_Lio_kaitai_struct_RuntimeConfig().init___Z__Z__Z__Z__Lio_kaitai_struct_CppRuntimeConfig__T__Lio_kaitai_struct_JavaRuntimeConfig__T__T__T__T__T(x$2, x$3, x$4, value, x$5, x$6, x$7, x$8, x$9, x$10, x$11, x$12)
|
|
3705
|
+
} else {
|
|
3706
|
+
var x = $m_s_None$();
|
|
3707
|
+
if ((!(x === x1))) {
|
|
3708
|
+
throw new $c_s_MatchError().init___O(x1)
|
|
3709
|
+
};
|
|
3710
|
+
var config2 = config1
|
|
3711
|
+
};
|
|
3712
|
+
return config2
|
|
3713
|
+
});
|
|
3599
3714
|
$c_Lio_kaitai_struct_Main$.prototype.importAndPrecompile__Lio_kaitai_struct_format_ClassSpecs__Lio_kaitai_struct_RuntimeConfig__s_concurrent_Future = (function(specs, config) {
|
|
3600
3715
|
return new $c_Lio_kaitai_struct_precompile_LoadImports().init___Lio_kaitai_struct_format_ClassSpecs(specs).processClass__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_precompile_LoadImports$ImportPath__s_concurrent_Future(specs.firstSpec$6, $m_Lio_kaitai_struct_precompile_LoadImports$().BasePath$1).map__F1__s_concurrent_ExecutionContext__s_concurrent_Future(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this, specs$1, config$1) {
|
|
3601
3716
|
return (function(allSpecs$2) {
|
|
@@ -3635,22 +3750,6 @@ $c_Lio_kaitai_struct_Main$.prototype.precompile__Lio_kaitai_struct_format_ClassS
|
|
|
3635
3750
|
var this$3 = $m_sc_Iterable$();
|
|
3636
3751
|
return $as_sc_Iterable(typeValidatorProblems.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(styleWarnings, this$3.ReusableCBFInstance$2))
|
|
3637
3752
|
});
|
|
3638
|
-
$c_Lio_kaitai_struct_Main$.prototype.updateConfig__p1__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_RuntimeConfig = (function(config, topClass) {
|
|
3639
|
-
if (topClass.meta$1.forceDebug$1) {
|
|
3640
|
-
var opaqueTypes = config.opaqueTypes$1;
|
|
3641
|
-
var cppConfig = config.cppConfig$1;
|
|
3642
|
-
var goPackage = config.goPackage$1;
|
|
3643
|
-
var java = config.java$1;
|
|
3644
|
-
var dotNetNamespace = config.dotNetNamespace$1;
|
|
3645
|
-
var phpNamespace = config.phpNamespace$1;
|
|
3646
|
-
var pythonPackage = config.pythonPackage$1;
|
|
3647
|
-
var nimModule = config.nimModule$1;
|
|
3648
|
-
var nimOpaque = config.nimOpaque$1;
|
|
3649
|
-
return new $c_Lio_kaitai_struct_RuntimeConfig().init___Z__Z__Z__Lio_kaitai_struct_CppRuntimeConfig__T__Lio_kaitai_struct_JavaRuntimeConfig__T__T__T__T__T(false, true, opaqueTypes, cppConfig, goPackage, java, dotNetNamespace, phpNamespace, pythonPackage, nimModule, nimOpaque)
|
|
3650
|
-
} else {
|
|
3651
|
-
return config
|
|
3652
|
-
}
|
|
3653
|
-
});
|
|
3654
3753
|
$c_Lio_kaitai_struct_Main$.prototype.precompile__Lio_kaitai_struct_format_ClassSpecs__Lio_kaitai_struct_RuntimeConfig__sc_Iterable = (function(specs, config) {
|
|
3655
3754
|
$m_scm_Iterable$();
|
|
3656
3755
|
$m_scm_Iterable$();
|
|
@@ -3676,7 +3775,7 @@ $c_Lio_kaitai_struct_Main$.prototype.precompile__Lio_kaitai_struct_format_ClassS
|
|
|
3676
3775
|
return b
|
|
3677
3776
|
});
|
|
3678
3777
|
$c_Lio_kaitai_struct_Main$.prototype.compile__Lio_kaitai_struct_format_ClassSpecs__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_languages_components_LanguageCompilerStatic__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_CompileLog$SpecSuccess = (function(specs, spec, lang, conf) {
|
|
3679
|
-
var config = this.
|
|
3778
|
+
var config = this.updateConfigFromMeta__p1__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_format_MetaSpec__Lio_kaitai_struct_RuntimeConfig(conf, spec.meta$1);
|
|
3680
3779
|
var x = $m_Lio_kaitai_struct_GraphvizClassCompiler$();
|
|
3681
3780
|
if ((x === lang)) {
|
|
3682
3781
|
var cc = new $c_Lio_kaitai_struct_GraphvizClassCompiler().init___Lio_kaitai_struct_format_ClassSpecs__Lio_kaitai_struct_format_ClassSpec(specs, spec)
|
|
@@ -3790,7 +3889,7 @@ $c_Lio_kaitai_struct_MainJs$.prototype.$$js$exported$prop$buildDate__O = (functi
|
|
|
3790
3889
|
});
|
|
3791
3890
|
$c_Lio_kaitai_struct_MainJs$.prototype.compile__T__sjs_js_Object__Lio_kaitai_struct_JavaScriptImporter__Z__sjs_js_Promise = (function(langStr, yaml, importer, debug) {
|
|
3792
3891
|
try {
|
|
3793
|
-
var config = new $c_Lio_kaitai_struct_RuntimeConfig().
|
|
3892
|
+
var config = new $c_Lio_kaitai_struct_RuntimeConfig().init___Z__Z__Z__Z__Lio_kaitai_struct_CppRuntimeConfig__T__Lio_kaitai_struct_JavaRuntimeConfig__T__T__T__T__T((!debug), debug, false, true, new $c_Lio_kaitai_struct_CppRuntimeConfig().init___sci_List__Z__Z__Z__Lio_kaitai_struct_CppRuntimeConfig$Pointers($m_sci_Nil$(), false, false, false, $m_Lio_kaitai_struct_CppRuntimeConfig$RawPointers$()), "", new $c_Lio_kaitai_struct_JavaRuntimeConfig().init___T__T__T("", "io.kaitai.struct.ByteBufferKaitaiStream", "java.nio.BufferUnderflowException"), "Kaitai", "", "", "kaitai_struct_nim_runtime", "");
|
|
3794
3893
|
var this$5 = $m_Lio_kaitai_struct_languages_components_LanguageCompilerStatic$();
|
|
3795
3894
|
var lang = $as_Lio_kaitai_struct_languages_components_LanguageCompilerStatic(this$5.NAME$undTO$undCLASS$1.apply__O__O(langStr));
|
|
3796
3895
|
var jsx$2 = $m_sjs_js_JSConverters$JSRichFuture$();
|
|
@@ -4395,9 +4494,9 @@ function $h_Lio_kaitai_struct_Version$() {
|
|
|
4395
4494
|
$h_Lio_kaitai_struct_Version$.prototype = $c_Lio_kaitai_struct_Version$.prototype;
|
|
4396
4495
|
$c_Lio_kaitai_struct_Version$.prototype.init___ = (function() {
|
|
4397
4496
|
this.name$1 = "kaitai-struct-compiler-js";
|
|
4398
|
-
this.version$1 = "0.10-
|
|
4399
|
-
this.gitCommit$1 = "
|
|
4400
|
-
this.gitTime$1 = "2022-
|
|
4497
|
+
this.version$1 = "0.10-SNAPSHOT20220801.113415.690af1b3";
|
|
4498
|
+
this.gitCommit$1 = "690af1b3";
|
|
4499
|
+
this.gitTime$1 = "2022-08-01T11:34:15+00:00";
|
|
4401
4500
|
return this
|
|
4402
4501
|
});
|
|
4403
4502
|
var $d_Lio_kaitai_struct_Version$ = new $TypeData().initClass({
|
|
@@ -8995,84 +9094,15 @@ $c_Lio_kaitai_struct_languages_components_ExtraAttrs$.prototype.forClassSpec__Li
|
|
|
8995
9094
|
return (function(attrs$2, attr$2) {
|
|
8996
9095
|
var attrs = $as_sci_List(attrs$2);
|
|
8997
9096
|
var attr = $as_Lio_kaitai_struct_format_AttrLikeSpec(attr$2);
|
|
8998
|
-
var
|
|
8999
|
-
var
|
|
9097
|
+
var id = attr.id__Lio_kaitai_struct_format_Identifier();
|
|
9098
|
+
var dataType = attr.dataType__Lio_kaitai_struct_datatype_DataType();
|
|
9099
|
+
var condSpec = attr.cond__Lio_kaitai_struct_format_ConditionalSpec();
|
|
9100
|
+
var jsx$4 = $f_Lio_kaitai_struct_languages_components_ExtraAttrs__extraAttrsForAttribute__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_format_ConditionalSpec__sc_Iterable(compiler$1, id, dataType, condSpec);
|
|
9000
9101
|
var this$4 = $m_sci_List$();
|
|
9001
9102
|
return $as_sci_List(attrs.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$4, this$4.ReusableCBFInstance$2))
|
|
9002
9103
|
})
|
|
9003
9104
|
})(this, compiler))))
|
|
9004
9105
|
});
|
|
9005
|
-
$c_Lio_kaitai_struct_languages_components_ExtraAttrs$.prototype.forAttr__p1__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_format_ConditionalSpec__Lio_kaitai_struct_languages_components_ExtraAttrs__sc_Iterable = (function(id, dataType, condSpec, compiler) {
|
|
9006
|
-
if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$BytesType)) {
|
|
9007
|
-
var x2 = $as_Lio_kaitai_struct_datatype_DataType$BytesType(dataType);
|
|
9008
|
-
var x1$2 = x2.process__s_Option();
|
|
9009
|
-
var x = $m_s_None$();
|
|
9010
|
-
if ((x === x1$2)) {
|
|
9011
|
-
return $m_sci_Nil$()
|
|
9012
|
-
} else if ((x1$2 instanceof $c_s_Some)) {
|
|
9013
|
-
var rawId = new $c_Lio_kaitai_struct_format_RawIdentifier().init___Lio_kaitai_struct_format_Identifier(id);
|
|
9014
|
-
$m_sci_List$();
|
|
9015
|
-
var array = [new $c_Lio_kaitai_struct_format_AttrSpec().init___sci_List__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_format_ConditionalSpec__s_Option__Lio_kaitai_struct_format_DocSpec($m_sci_Nil$(), rawId, x2, condSpec, ($m_Lio_kaitai_struct_format_AttrSpec$(), $m_s_None$()), ($m_Lio_kaitai_struct_format_AttrSpec$(), $m_Lio_kaitai_struct_format_DocSpec$().EMPTY$1))];
|
|
9016
|
-
var i = (((-1) + $uI(array.length)) | 0);
|
|
9017
|
-
var result = $m_sci_Nil$();
|
|
9018
|
-
while ((i >= 0)) {
|
|
9019
|
-
var this$6 = result;
|
|
9020
|
-
var index = i;
|
|
9021
|
-
var x$1 = array[index];
|
|
9022
|
-
result = new $c_sci_$colon$colon().init___O__sci_List(x$1, this$6);
|
|
9023
|
-
i = (((-1) + i) | 0)
|
|
9024
|
-
};
|
|
9025
|
-
var jsx$2 = result;
|
|
9026
|
-
var jsx$1 = compiler.extraAttrForIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__sci_List(id, condSpec.repeat$1);
|
|
9027
|
-
var this$7 = $m_sci_List$();
|
|
9028
|
-
return $as_sc_Iterable(jsx$2.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$1, this$7.ReusableCBFInstance$2))
|
|
9029
|
-
} else {
|
|
9030
|
-
throw new $c_s_MatchError().init___O(x1$2)
|
|
9031
|
-
}
|
|
9032
|
-
} else if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$UserTypeFromBytes)) {
|
|
9033
|
-
var x3 = $as_Lio_kaitai_struct_datatype_DataType$UserTypeFromBytes(dataType);
|
|
9034
|
-
var rawId$2 = new $c_Lio_kaitai_struct_format_RawIdentifier().init___Lio_kaitai_struct_format_Identifier(id);
|
|
9035
|
-
$m_sci_List$();
|
|
9036
|
-
var array$1 = [new $c_Lio_kaitai_struct_format_AttrSpec().init___sci_List__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_format_ConditionalSpec__s_Option__Lio_kaitai_struct_format_DocSpec($m_sci_Nil$(), rawId$2, x3.bytes$4, condSpec, ($m_Lio_kaitai_struct_format_AttrSpec$(), $m_s_None$()), ($m_Lio_kaitai_struct_format_AttrSpec$(), $m_Lio_kaitai_struct_format_DocSpec$().EMPTY$1))];
|
|
9037
|
-
var i$1 = (((-1) + $uI(array$1.length)) | 0);
|
|
9038
|
-
var result$1 = $m_sci_Nil$();
|
|
9039
|
-
while ((i$1 >= 0)) {
|
|
9040
|
-
var this$13 = result$1;
|
|
9041
|
-
var index$1 = i$1;
|
|
9042
|
-
var x$2 = array$1[index$1];
|
|
9043
|
-
result$1 = new $c_sci_$colon$colon().init___O__sci_List(x$2, this$13);
|
|
9044
|
-
i$1 = (((-1) + i$1) | 0)
|
|
9045
|
-
};
|
|
9046
|
-
var jsx$6 = result$1;
|
|
9047
|
-
var jsx$5 = compiler.extraAttrForIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__sci_List(rawId$2, condSpec.repeat$1);
|
|
9048
|
-
var this$14 = $m_sci_List$();
|
|
9049
|
-
var jsx$4 = $as_sci_List(jsx$6.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$5, this$14.ReusableCBFInstance$2));
|
|
9050
|
-
var jsx$3 = this.forAttr__p1__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_format_ConditionalSpec__Lio_kaitai_struct_languages_components_ExtraAttrs__sc_Iterable(rawId$2, x3.bytes$4, condSpec, compiler);
|
|
9051
|
-
var this$15 = $m_sci_List$();
|
|
9052
|
-
var this$16 = $as_sci_List(jsx$4.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$3, this$15.ReusableCBFInstance$2));
|
|
9053
|
-
return $as_sc_Iterable($f_sc_SeqLike__distinct__O(this$16))
|
|
9054
|
-
} else if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$SwitchType)) {
|
|
9055
|
-
var x4 = $as_Lio_kaitai_struct_datatype_DataType$SwitchType(dataType);
|
|
9056
|
-
var this$18 = x4.cases$2;
|
|
9057
|
-
var f = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this, id$1, condSpec$1, compiler$1) {
|
|
9058
|
-
return (function(x0$1$2) {
|
|
9059
|
-
var x0$1 = $as_T2(x0$1$2);
|
|
9060
|
-
if ((x0$1 !== null)) {
|
|
9061
|
-
var caseType = $as_Lio_kaitai_struct_datatype_DataType(x0$1.$$und2__O());
|
|
9062
|
-
return $m_Lio_kaitai_struct_languages_components_ExtraAttrs$().forAttr__p1__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_format_ConditionalSpec__Lio_kaitai_struct_languages_components_ExtraAttrs__sc_Iterable(id$1, caseType, condSpec$1, compiler$1)
|
|
9063
|
-
} else {
|
|
9064
|
-
throw new $c_s_MatchError().init___O(x0$1)
|
|
9065
|
-
}
|
|
9066
|
-
})
|
|
9067
|
-
})(this, id, condSpec, compiler));
|
|
9068
|
-
var this$17 = $m_sci_Iterable$();
|
|
9069
|
-
var bf = this$17.ReusableCBFInstance$2;
|
|
9070
|
-
var this$19 = $as_sc_TraversableOnce($f_sc_TraversableLike__flatMap__F1__scg_CanBuildFrom__O(this$18, f, bf)).toList__sci_List();
|
|
9071
|
-
return $as_sc_Iterable($f_sc_SeqLike__distinct__O(this$19))
|
|
9072
|
-
} else {
|
|
9073
|
-
return $m_sci_Nil$()
|
|
9074
|
-
}
|
|
9075
|
-
});
|
|
9076
9106
|
var $d_Lio_kaitai_struct_languages_components_ExtraAttrs$ = new $TypeData().initClass({
|
|
9077
9107
|
Lio_kaitai_struct_languages_components_ExtraAttrs$: 0
|
|
9078
9108
|
}, false, "io.kaitai.struct.languages.components.ExtraAttrs$", {
|
|
@@ -20195,9 +20225,11 @@ $c_Lio_kaitai_struct_ClassCompiler.prototype.compileCalcEndian__Lio_kaitai_struc
|
|
|
20195
20225
|
})(this)))
|
|
20196
20226
|
});
|
|
20197
20227
|
$c_Lio_kaitai_struct_ClassCompiler.prototype.compileAttrInit__Lio_kaitai_struct_format_AttrLikeSpec__V = (function(originalAttr) {
|
|
20198
|
-
var this$1 = $m_Lio_kaitai_struct_languages_components_ExtraAttrs$();
|
|
20199
20228
|
var compiler = this.lang$1;
|
|
20200
|
-
var
|
|
20229
|
+
var id = originalAttr.id__Lio_kaitai_struct_format_Identifier();
|
|
20230
|
+
var dataType = originalAttr.dataType__Lio_kaitai_struct_datatype_DataType();
|
|
20231
|
+
var condSpec = originalAttr.cond__Lio_kaitai_struct_format_ConditionalSpec();
|
|
20232
|
+
var extraAttrs = $f_Lio_kaitai_struct_languages_components_ExtraAttrs__extraAttrsForAttribute__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_format_ConditionalSpec__sc_Iterable(compiler, id, dataType, condSpec);
|
|
20201
20233
|
$m_sci_List$();
|
|
20202
20234
|
var array = [originalAttr];
|
|
20203
20235
|
var i = (((-1) + $uI(array.length)) | 0);
|
|
@@ -28772,9 +28804,9 @@ function $h_Lio_kaitai_struct_format_MetaSpec$() {
|
|
|
28772
28804
|
$h_Lio_kaitai_struct_format_MetaSpec$.prototype = $c_Lio_kaitai_struct_format_MetaSpec$.prototype;
|
|
28773
28805
|
$c_Lio_kaitai_struct_format_MetaSpec$.prototype.init___ = (function() {
|
|
28774
28806
|
$n_Lio_kaitai_struct_format_MetaSpec$ = this;
|
|
28775
|
-
this.OPAQUE$1 = new $c_Lio_kaitai_struct_format_MetaSpec().
|
|
28807
|
+
this.OPAQUE$1 = new $c_Lio_kaitai_struct_format_MetaSpec().init___sci_List__Z__s_Option__s_Option__s_Option__s_Option__Z__s_Option__s_Option__sci_List($m_sci_Nil$(), true, $m_s_None$(), $m_s_None$(), $m_s_None$(), $m_s_None$(), false, $m_s_None$(), $m_s_None$(), $m_sci_Nil$());
|
|
28776
28808
|
var jsx$1 = $m_s_Predef$().Set$2;
|
|
28777
|
-
var array = ["id", "imports", "endian", "bit-endian", "encoding", "title", "ks-version", "ks-debug", "ks-opaque-types", "license", "file-extension", "xref", "tags", "application"];
|
|
28809
|
+
var array = ["id", "imports", "endian", "bit-endian", "encoding", "title", "ks-version", "ks-debug", "ks-opaque-types", "ks-zero-copy-substream", "license", "file-extension", "xref", "tags", "application"];
|
|
28778
28810
|
this.LEGAL$undKEYS$1 = $as_sci_Set(jsx$1.apply__sc_Seq__sc_GenTraversable(new $c_sjs_js_WrappedArray().init___sjs_js_Array(array)));
|
|
28779
28811
|
return this
|
|
28780
28812
|
});
|
|
@@ -28820,8 +28852,9 @@ $c_Lio_kaitai_struct_format_MetaSpec$.prototype.fromYaml__O__sci_List__Lio_kaita
|
|
|
28820
28852
|
var this$10 = $m_Lio_kaitai_struct_format_ParseUtils$().getOptValueBool__sci_Map__T__sci_List__s_Option(srcMap, "ks-debug", path);
|
|
28821
28853
|
var forceDebug = $uZ((this$10.isEmpty__Z() ? false : this$10.get__O()));
|
|
28822
28854
|
var opaqueTypes = $m_Lio_kaitai_struct_format_ParseUtils$().getOptValueBool__sci_Map__T__sci_List__s_Option(srcMap, "ks-opaque-types", path);
|
|
28855
|
+
var zeroCopySubstream = $m_Lio_kaitai_struct_format_ParseUtils$().getOptValueBool__sci_Map__T__sci_List__s_Option(srcMap, "ks-zero-copy-substream", path);
|
|
28823
28856
|
var imports = $m_Lio_kaitai_struct_format_ParseUtils$().getListStr__sci_Map__T__sci_List__sci_List(srcMap, "imports", path);
|
|
28824
|
-
return new $c_Lio_kaitai_struct_format_MetaSpec().
|
|
28857
|
+
return new $c_Lio_kaitai_struct_format_MetaSpec().init___sci_List__Z__s_Option__s_Option__s_Option__s_Option__Z__s_Option__s_Option__sci_List(path, false, id, endian, bitEndian, encoding, forceDebug, opaqueTypes, zeroCopySubstream, imports)
|
|
28825
28858
|
});
|
|
28826
28859
|
$c_Lio_kaitai_struct_format_MetaSpec$.prototype.emptyWithPath__sci_List__Lio_kaitai_struct_format_MetaSpec = (function(path) {
|
|
28827
28860
|
var this$1 = this.OPAQUE$1;
|
|
@@ -28837,8 +28870,10 @@ $c_Lio_kaitai_struct_format_MetaSpec$.prototype.emptyWithPath__sci_List__Lio_kai
|
|
|
28837
28870
|
var this$6 = this.OPAQUE$1;
|
|
28838
28871
|
var x$8 = this$6.opaqueTypes$1;
|
|
28839
28872
|
var this$7 = this.OPAQUE$1;
|
|
28840
|
-
var x$9 = this$7.
|
|
28841
|
-
|
|
28873
|
+
var x$9 = this$7.zeroCopySubstream$1;
|
|
28874
|
+
var this$8 = this.OPAQUE$1;
|
|
28875
|
+
var x$10 = this$8.imports$1;
|
|
28876
|
+
return new $c_Lio_kaitai_struct_format_MetaSpec().init___sci_List__Z__s_Option__s_Option__s_Option__s_Option__Z__s_Option__s_Option__sci_List(path, false, x$3, x$4, x$5, x$6, x$7, x$8, x$9, x$10)
|
|
28842
28877
|
});
|
|
28843
28878
|
var $d_Lio_kaitai_struct_format_MetaSpec$ = new $TypeData().initClass({
|
|
28844
28879
|
Lio_kaitai_struct_format_MetaSpec$: 0
|
|
@@ -29539,29 +29574,33 @@ function $m_Lio_kaitai_struct_languages_CppCompiler$() {
|
|
|
29539
29574
|
return $n_Lio_kaitai_struct_languages_CppCompiler$
|
|
29540
29575
|
}
|
|
29541
29576
|
function $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__createSubstream__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T($thiz, id, byteType, io, rep, defEndian) {
|
|
29542
|
-
if ((
|
|
29543
|
-
|
|
29544
|
-
|
|
29545
|
-
|
|
29546
|
-
|
|
29547
|
-
|
|
29548
|
-
|
|
29549
|
-
|
|
29550
|
-
|
|
29551
|
-
|
|
29552
|
-
|
|
29553
|
-
|
|
29577
|
+
if ($as_Lio_kaitai_struct_languages_components_LanguageCompiler($thiz).config$1.zeroCopySubstream$1) {
|
|
29578
|
+
if ((byteType instanceof $c_Lio_kaitai_struct_datatype_DataType$BytesLimitType)) {
|
|
29579
|
+
var x2 = $as_Lio_kaitai_struct_datatype_DataType$BytesLimitType(byteType);
|
|
29580
|
+
var sizeExpr = x2.size$2;
|
|
29581
|
+
var p3 = x2.terminator$2;
|
|
29582
|
+
var p5 = x2.padRight$2;
|
|
29583
|
+
var p6 = x2.process$2;
|
|
29584
|
+
var x = $m_s_None$();
|
|
29585
|
+
if ((x === p3)) {
|
|
29586
|
+
var x$3 = $m_s_None$();
|
|
29587
|
+
if ((x$3 === p5)) {
|
|
29588
|
+
var x$5 = $m_s_None$();
|
|
29589
|
+
var jsx$1 = (x$5 === p6)
|
|
29590
|
+
} else {
|
|
29591
|
+
var jsx$1 = false
|
|
29592
|
+
}
|
|
29554
29593
|
} else {
|
|
29555
29594
|
var jsx$1 = false
|
|
29595
|
+
};
|
|
29596
|
+
if (jsx$1) {
|
|
29597
|
+
return $thiz.createSubstreamFixedSize__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__T__T(id, sizeExpr, io)
|
|
29556
29598
|
}
|
|
29557
|
-
} else {
|
|
29558
|
-
var jsx$1 = false
|
|
29559
29599
|
};
|
|
29560
|
-
|
|
29561
|
-
|
|
29562
|
-
|
|
29563
|
-
}
|
|
29564
|
-
return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__createSubstreamBuffered__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T($thiz, id, byteType, io, rep, defEndian)
|
|
29600
|
+
return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__createSubstreamBuffered__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T($thiz, id, byteType, io, rep, defEndian)
|
|
29601
|
+
} else {
|
|
29602
|
+
return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__createSubstreamBuffered__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T($thiz, id, byteType, io, rep, defEndian)
|
|
29603
|
+
}
|
|
29565
29604
|
}
|
|
29566
29605
|
function $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V($thiz, id, expr, rep, isRaw) {
|
|
29567
29606
|
var x = $m_Lio_kaitai_struct_format_RepeatEos$();
|
|
@@ -33953,6 +33992,10 @@ $c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.idToStr__Lio_kaitai_struc
|
|
|
33953
33992
|
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
33954
33993
|
var innerId = x6.innerId$2;
|
|
33955
33994
|
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
33995
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_IoStorageIdentifier)) {
|
|
33996
|
+
var x7 = $as_Lio_kaitai_struct_format_IoStorageIdentifier(id);
|
|
33997
|
+
var innerId$2 = x7.innerId$2;
|
|
33998
|
+
return ("_io_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId$2))
|
|
33956
33999
|
} else {
|
|
33957
34000
|
throw new $c_s_MatchError().init___O(id)
|
|
33958
34001
|
}
|
|
@@ -39474,6 +39517,7 @@ function $c_Lio_kaitai_struct_RuntimeConfig() {
|
|
|
39474
39517
|
this.autoRead$1 = false;
|
|
39475
39518
|
this.readStoresPos$1 = false;
|
|
39476
39519
|
this.opaqueTypes$1 = false;
|
|
39520
|
+
this.zeroCopySubstream$1 = false;
|
|
39477
39521
|
this.cppConfig$1 = null;
|
|
39478
39522
|
this.goPackage$1 = null;
|
|
39479
39523
|
this.java$1 = null;
|
|
@@ -39494,14 +39538,14 @@ $c_Lio_kaitai_struct_RuntimeConfig.prototype.productPrefix__T = (function() {
|
|
|
39494
39538
|
return "RuntimeConfig"
|
|
39495
39539
|
});
|
|
39496
39540
|
$c_Lio_kaitai_struct_RuntimeConfig.prototype.productArity__I = (function() {
|
|
39497
|
-
return
|
|
39541
|
+
return 12
|
|
39498
39542
|
});
|
|
39499
39543
|
$c_Lio_kaitai_struct_RuntimeConfig.prototype.equals__O__Z = (function(x$1) {
|
|
39500
39544
|
if ((this === x$1)) {
|
|
39501
39545
|
return true
|
|
39502
39546
|
} else if ((x$1 instanceof $c_Lio_kaitai_struct_RuntimeConfig)) {
|
|
39503
39547
|
var RuntimeConfig$1 = $as_Lio_kaitai_struct_RuntimeConfig(x$1);
|
|
39504
|
-
if ((((this.autoRead$1 === RuntimeConfig$1.autoRead$1) && (this.readStoresPos$1 === RuntimeConfig$1.readStoresPos$1)) && (this.opaqueTypes$1 === RuntimeConfig$1.opaqueTypes$1))) {
|
|
39548
|
+
if (((((this.autoRead$1 === RuntimeConfig$1.autoRead$1) && (this.readStoresPos$1 === RuntimeConfig$1.readStoresPos$1)) && (this.opaqueTypes$1 === RuntimeConfig$1.opaqueTypes$1)) && (this.zeroCopySubstream$1 === RuntimeConfig$1.zeroCopySubstream$1))) {
|
|
39505
39549
|
var x = this.cppConfig$1;
|
|
39506
39550
|
var x$2 = RuntimeConfig$1.cppConfig$1;
|
|
39507
39551
|
var jsx$2 = ((x === null) ? (x$2 === null) : x.equals__O__Z(x$2))
|
|
@@ -39524,6 +39568,21 @@ $c_Lio_kaitai_struct_RuntimeConfig.prototype.equals__O__Z = (function(x$1) {
|
|
|
39524
39568
|
return false
|
|
39525
39569
|
}
|
|
39526
39570
|
});
|
|
39571
|
+
$c_Lio_kaitai_struct_RuntimeConfig.prototype.init___Z__Z__Z__Z__Lio_kaitai_struct_CppRuntimeConfig__T__Lio_kaitai_struct_JavaRuntimeConfig__T__T__T__T__T = (function(autoRead, readStoresPos, opaqueTypes, zeroCopySubstream, cppConfig, goPackage, java, dotNetNamespace, phpNamespace, pythonPackage, nimModule, nimOpaque) {
|
|
39572
|
+
this.autoRead$1 = autoRead;
|
|
39573
|
+
this.readStoresPos$1 = readStoresPos;
|
|
39574
|
+
this.opaqueTypes$1 = opaqueTypes;
|
|
39575
|
+
this.zeroCopySubstream$1 = zeroCopySubstream;
|
|
39576
|
+
this.cppConfig$1 = cppConfig;
|
|
39577
|
+
this.goPackage$1 = goPackage;
|
|
39578
|
+
this.java$1 = java;
|
|
39579
|
+
this.dotNetNamespace$1 = dotNetNamespace;
|
|
39580
|
+
this.phpNamespace$1 = phpNamespace;
|
|
39581
|
+
this.pythonPackage$1 = pythonPackage;
|
|
39582
|
+
this.nimModule$1 = nimModule;
|
|
39583
|
+
this.nimOpaque$1 = nimOpaque;
|
|
39584
|
+
return this
|
|
39585
|
+
});
|
|
39527
39586
|
$c_Lio_kaitai_struct_RuntimeConfig.prototype.productElement__I__O = (function(x$1) {
|
|
39528
39587
|
switch (x$1) {
|
|
39529
39588
|
case 0: {
|
|
@@ -39539,34 +39598,38 @@ $c_Lio_kaitai_struct_RuntimeConfig.prototype.productElement__I__O = (function(x$
|
|
|
39539
39598
|
break
|
|
39540
39599
|
}
|
|
39541
39600
|
case 3: {
|
|
39542
|
-
return this.
|
|
39601
|
+
return this.zeroCopySubstream$1;
|
|
39543
39602
|
break
|
|
39544
39603
|
}
|
|
39545
39604
|
case 4: {
|
|
39546
|
-
return this.
|
|
39605
|
+
return this.cppConfig$1;
|
|
39547
39606
|
break
|
|
39548
39607
|
}
|
|
39549
39608
|
case 5: {
|
|
39550
|
-
return this.
|
|
39609
|
+
return this.goPackage$1;
|
|
39551
39610
|
break
|
|
39552
39611
|
}
|
|
39553
39612
|
case 6: {
|
|
39554
|
-
return this.
|
|
39613
|
+
return this.java$1;
|
|
39555
39614
|
break
|
|
39556
39615
|
}
|
|
39557
39616
|
case 7: {
|
|
39558
|
-
return this.
|
|
39617
|
+
return this.dotNetNamespace$1;
|
|
39559
39618
|
break
|
|
39560
39619
|
}
|
|
39561
39620
|
case 8: {
|
|
39562
|
-
return this.
|
|
39621
|
+
return this.phpNamespace$1;
|
|
39563
39622
|
break
|
|
39564
39623
|
}
|
|
39565
39624
|
case 9: {
|
|
39566
|
-
return this.
|
|
39625
|
+
return this.pythonPackage$1;
|
|
39567
39626
|
break
|
|
39568
39627
|
}
|
|
39569
39628
|
case 10: {
|
|
39629
|
+
return this.nimModule$1;
|
|
39630
|
+
break
|
|
39631
|
+
}
|
|
39632
|
+
case 11: {
|
|
39570
39633
|
return this.nimOpaque$1;
|
|
39571
39634
|
break
|
|
39572
39635
|
}
|
|
@@ -39578,25 +39641,12 @@ $c_Lio_kaitai_struct_RuntimeConfig.prototype.productElement__I__O = (function(x$
|
|
|
39578
39641
|
$c_Lio_kaitai_struct_RuntimeConfig.prototype.toString__T = (function() {
|
|
39579
39642
|
return $m_sr_ScalaRunTime$().$$undtoString__s_Product__T(this)
|
|
39580
39643
|
});
|
|
39581
|
-
$c_Lio_kaitai_struct_RuntimeConfig.prototype.init___Z__Z__Z__Lio_kaitai_struct_CppRuntimeConfig__T__Lio_kaitai_struct_JavaRuntimeConfig__T__T__T__T__T = (function(autoRead, readStoresPos, opaqueTypes, cppConfig, goPackage, java, dotNetNamespace, phpNamespace, pythonPackage, nimModule, nimOpaque) {
|
|
39582
|
-
this.autoRead$1 = autoRead;
|
|
39583
|
-
this.readStoresPos$1 = readStoresPos;
|
|
39584
|
-
this.opaqueTypes$1 = opaqueTypes;
|
|
39585
|
-
this.cppConfig$1 = cppConfig;
|
|
39586
|
-
this.goPackage$1 = goPackage;
|
|
39587
|
-
this.java$1 = java;
|
|
39588
|
-
this.dotNetNamespace$1 = dotNetNamespace;
|
|
39589
|
-
this.phpNamespace$1 = phpNamespace;
|
|
39590
|
-
this.pythonPackage$1 = pythonPackage;
|
|
39591
|
-
this.nimModule$1 = nimModule;
|
|
39592
|
-
this.nimOpaque$1 = nimOpaque;
|
|
39593
|
-
return this
|
|
39594
|
-
});
|
|
39595
39644
|
$c_Lio_kaitai_struct_RuntimeConfig.prototype.hashCode__I = (function() {
|
|
39596
39645
|
var acc = (-889275714);
|
|
39597
39646
|
acc = $m_sr_Statics$().mix__I__I__I(acc, (this.autoRead$1 ? 1231 : 1237));
|
|
39598
39647
|
acc = $m_sr_Statics$().mix__I__I__I(acc, (this.readStoresPos$1 ? 1231 : 1237));
|
|
39599
39648
|
acc = $m_sr_Statics$().mix__I__I__I(acc, (this.opaqueTypes$1 ? 1231 : 1237));
|
|
39649
|
+
acc = $m_sr_Statics$().mix__I__I__I(acc, (this.zeroCopySubstream$1 ? 1231 : 1237));
|
|
39600
39650
|
acc = $m_sr_Statics$().mix__I__I__I(acc, $m_sr_Statics$().anyHash__O__I(this.cppConfig$1));
|
|
39601
39651
|
acc = $m_sr_Statics$().mix__I__I__I(acc, $m_sr_Statics$().anyHash__O__I(this.goPackage$1));
|
|
39602
39652
|
acc = $m_sr_Statics$().mix__I__I__I(acc, $m_sr_Statics$().anyHash__O__I(this.java$1));
|
|
@@ -39605,7 +39655,7 @@ $c_Lio_kaitai_struct_RuntimeConfig.prototype.hashCode__I = (function() {
|
|
|
39605
39655
|
acc = $m_sr_Statics$().mix__I__I__I(acc, $m_sr_Statics$().anyHash__O__I(this.pythonPackage$1));
|
|
39606
39656
|
acc = $m_sr_Statics$().mix__I__I__I(acc, $m_sr_Statics$().anyHash__O__I(this.nimModule$1));
|
|
39607
39657
|
acc = $m_sr_Statics$().mix__I__I__I(acc, $m_sr_Statics$().anyHash__O__I(this.nimOpaque$1));
|
|
39608
|
-
return $m_sr_Statics$().finalizeHash__I__I__I(acc,
|
|
39658
|
+
return $m_sr_Statics$().finalizeHash__I__I__I(acc, 12)
|
|
39609
39659
|
});
|
|
39610
39660
|
$c_Lio_kaitai_struct_RuntimeConfig.prototype.productIterator__sc_Iterator = (function() {
|
|
39611
39661
|
return new $c_sr_ScalaRunTime$$anon$1().init___s_Product(this)
|
|
@@ -42291,6 +42341,9 @@ $c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.innerClasse
|
|
|
42291
42341
|
$c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.importFile__T__V = (function(file) {
|
|
42292
42342
|
/*<skip>*/
|
|
42293
42343
|
});
|
|
42344
|
+
$c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.extraRawAttrForUserTypeFromBytes__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$UserTypeFromBytes__Lio_kaitai_struct_format_ConditionalSpec__sci_List = (function(id, ut, condSpec) {
|
|
42345
|
+
return $f_Lio_kaitai_struct_languages_components_ExtraAttrs__extraRawAttrForUserTypeFromBytes__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$UserTypeFromBytes__Lio_kaitai_struct_format_ConditionalSpec__sci_List(this, id, ut, condSpec)
|
|
42346
|
+
});
|
|
42294
42347
|
$c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.instanceDeclHeader__sci_List__V = (function(className) {
|
|
42295
42348
|
/*<skip>*/
|
|
42296
42349
|
});
|
|
@@ -50249,6 +50302,7 @@ function $c_Lio_kaitai_struct_format_MetaSpec() {
|
|
|
50249
50302
|
this.encoding$1 = null;
|
|
50250
50303
|
this.forceDebug$1 = false;
|
|
50251
50304
|
this.opaqueTypes$1 = null;
|
|
50305
|
+
this.zeroCopySubstream$1 = null;
|
|
50252
50306
|
this.imports$1 = null
|
|
50253
50307
|
}
|
|
50254
50308
|
$c_Lio_kaitai_struct_format_MetaSpec.prototype = new $h_O();
|
|
@@ -50262,7 +50316,7 @@ $c_Lio_kaitai_struct_format_MetaSpec.prototype.productPrefix__T = (function() {
|
|
|
50262
50316
|
return "MetaSpec"
|
|
50263
50317
|
});
|
|
50264
50318
|
$c_Lio_kaitai_struct_format_MetaSpec.prototype.productArity__I = (function() {
|
|
50265
|
-
return
|
|
50319
|
+
return 10
|
|
50266
50320
|
});
|
|
50267
50321
|
$c_Lio_kaitai_struct_format_MetaSpec.prototype.equals__O__Z = (function(x$1) {
|
|
50268
50322
|
if ((this === x$1)) {
|
|
@@ -50274,42 +50328,49 @@ $c_Lio_kaitai_struct_format_MetaSpec.prototype.equals__O__Z = (function(x$1) {
|
|
|
50274
50328
|
if ((((x === null) ? (x$2 === null) : x.equals__O__Z(x$2)) && (this.isOpaque$1 === MetaSpec$1.isOpaque$1))) {
|
|
50275
50329
|
var x$3 = this.id$1;
|
|
50276
50330
|
var x$4 = MetaSpec$1.id$1;
|
|
50277
|
-
var jsx$
|
|
50331
|
+
var jsx$6 = ((x$3 === null) ? (x$4 === null) : x$3.equals__O__Z(x$4))
|
|
50278
50332
|
} else {
|
|
50279
|
-
var jsx$
|
|
50333
|
+
var jsx$6 = false
|
|
50280
50334
|
};
|
|
50281
|
-
if (jsx$
|
|
50335
|
+
if (jsx$6) {
|
|
50282
50336
|
var x$5 = this.endian$1;
|
|
50283
50337
|
var x$6 = MetaSpec$1.endian$1;
|
|
50284
|
-
var jsx$
|
|
50338
|
+
var jsx$5 = ((x$5 === null) ? (x$6 === null) : x$5.equals__O__Z(x$6))
|
|
50285
50339
|
} else {
|
|
50286
|
-
var jsx$
|
|
50340
|
+
var jsx$5 = false
|
|
50287
50341
|
};
|
|
50288
|
-
if (jsx$
|
|
50342
|
+
if (jsx$5) {
|
|
50289
50343
|
var x$7 = this.bitEndian$1;
|
|
50290
50344
|
var x$8 = MetaSpec$1.bitEndian$1;
|
|
50291
|
-
var jsx$
|
|
50345
|
+
var jsx$4 = ((x$7 === null) ? (x$8 === null) : x$7.equals__O__Z(x$8))
|
|
50292
50346
|
} else {
|
|
50293
|
-
var jsx$
|
|
50347
|
+
var jsx$4 = false
|
|
50294
50348
|
};
|
|
50295
|
-
if (jsx$
|
|
50349
|
+
if (jsx$4) {
|
|
50296
50350
|
var x$9 = this.encoding$1;
|
|
50297
50351
|
var x$10 = MetaSpec$1.encoding$1;
|
|
50298
|
-
var jsx$
|
|
50352
|
+
var jsx$3 = ((x$9 === null) ? (x$10 === null) : x$9.equals__O__Z(x$10))
|
|
50299
50353
|
} else {
|
|
50300
|
-
var jsx$
|
|
50354
|
+
var jsx$3 = false
|
|
50301
50355
|
};
|
|
50302
|
-
if ((jsx$
|
|
50356
|
+
if ((jsx$3 && (this.forceDebug$1 === MetaSpec$1.forceDebug$1))) {
|
|
50303
50357
|
var x$11 = this.opaqueTypes$1;
|
|
50304
50358
|
var x$12 = MetaSpec$1.opaqueTypes$1;
|
|
50305
|
-
var jsx$
|
|
50359
|
+
var jsx$2 = ((x$11 === null) ? (x$12 === null) : x$11.equals__O__Z(x$12))
|
|
50360
|
+
} else {
|
|
50361
|
+
var jsx$2 = false
|
|
50362
|
+
};
|
|
50363
|
+
if (jsx$2) {
|
|
50364
|
+
var x$13 = this.zeroCopySubstream$1;
|
|
50365
|
+
var x$14 = MetaSpec$1.zeroCopySubstream$1;
|
|
50366
|
+
var jsx$1 = ((x$13 === null) ? (x$14 === null) : x$13.equals__O__Z(x$14))
|
|
50306
50367
|
} else {
|
|
50307
50368
|
var jsx$1 = false
|
|
50308
50369
|
};
|
|
50309
50370
|
if (jsx$1) {
|
|
50310
|
-
var x$
|
|
50311
|
-
var x$
|
|
50312
|
-
return ((x$
|
|
50371
|
+
var x$15 = this.imports$1;
|
|
50372
|
+
var x$16 = MetaSpec$1.imports$1;
|
|
50373
|
+
return ((x$15 === null) ? (x$16 === null) : x$15.equals__O__Z(x$16))
|
|
50313
50374
|
} else {
|
|
50314
50375
|
return false
|
|
50315
50376
|
}
|
|
@@ -50352,6 +50413,10 @@ $c_Lio_kaitai_struct_format_MetaSpec.prototype.productElement__I__O = (function(
|
|
|
50352
50413
|
break
|
|
50353
50414
|
}
|
|
50354
50415
|
case 8: {
|
|
50416
|
+
return this.zeroCopySubstream$1;
|
|
50417
|
+
break
|
|
50418
|
+
}
|
|
50419
|
+
case 9: {
|
|
50355
50420
|
return this.imports$1;
|
|
50356
50421
|
break
|
|
50357
50422
|
}
|
|
@@ -50360,18 +50425,6 @@ $c_Lio_kaitai_struct_format_MetaSpec.prototype.productElement__I__O = (function(
|
|
|
50360
50425
|
}
|
|
50361
50426
|
}
|
|
50362
50427
|
});
|
|
50363
|
-
$c_Lio_kaitai_struct_format_MetaSpec.prototype.init___sci_List__Z__s_Option__s_Option__s_Option__s_Option__Z__s_Option__sci_List = (function(path, isOpaque, id, endian, bitEndian, encoding, forceDebug, opaqueTypes, imports) {
|
|
50364
|
-
this.path$1 = path;
|
|
50365
|
-
this.isOpaque$1 = isOpaque;
|
|
50366
|
-
this.id$1 = id;
|
|
50367
|
-
this.endian$1 = endian;
|
|
50368
|
-
this.bitEndian$1 = bitEndian;
|
|
50369
|
-
this.encoding$1 = encoding;
|
|
50370
|
-
this.forceDebug$1 = forceDebug;
|
|
50371
|
-
this.opaqueTypes$1 = opaqueTypes;
|
|
50372
|
-
this.imports$1 = imports;
|
|
50373
|
-
return this
|
|
50374
|
-
});
|
|
50375
50428
|
$c_Lio_kaitai_struct_format_MetaSpec.prototype.toString__T = (function() {
|
|
50376
50429
|
return $m_sr_ScalaRunTime$().$$undtoString__s_Product__T(this)
|
|
50377
50430
|
});
|
|
@@ -50405,34 +50458,49 @@ $c_Lio_kaitai_struct_format_MetaSpec.prototype.fillInEndian__s_Option__Lio_kaita
|
|
|
50405
50458
|
var x$6 = this.encoding$1;
|
|
50406
50459
|
var x$7 = this.forceDebug$1;
|
|
50407
50460
|
var x$8 = this.opaqueTypes$1;
|
|
50408
|
-
var x$9 = this.
|
|
50409
|
-
|
|
50461
|
+
var x$9 = this.zeroCopySubstream$1;
|
|
50462
|
+
var x$10 = this.imports$1;
|
|
50463
|
+
return new $c_Lio_kaitai_struct_format_MetaSpec().init___sci_List__Z__s_Option__s_Option__s_Option__s_Option__Z__s_Option__s_Option__sci_List(x$2$2, x$3$2, x$4$2, x$1, x$5, x$6, x$7, x$8, x$9, x$10)
|
|
50410
50464
|
}
|
|
50411
50465
|
};
|
|
50412
50466
|
var p12 = $as_s_Option(x1.$$und1$f);
|
|
50413
50467
|
var p13 = $as_s_Option(x1.$$und2$f);
|
|
50414
50468
|
if ((p12 instanceof $c_s_Some)) {
|
|
50415
|
-
var x$
|
|
50416
|
-
var jsx$2 = (x$
|
|
50469
|
+
var x$11 = $m_s_None$();
|
|
50470
|
+
var jsx$2 = (x$11 === p13)
|
|
50417
50471
|
} else {
|
|
50418
50472
|
var jsx$2 = false
|
|
50419
50473
|
};
|
|
50420
50474
|
if (jsx$2) {
|
|
50421
|
-
var x$
|
|
50422
|
-
var x$
|
|
50423
|
-
var x$
|
|
50424
|
-
var x$
|
|
50425
|
-
var x$
|
|
50426
|
-
var x$
|
|
50427
|
-
var x$
|
|
50428
|
-
var x$
|
|
50429
|
-
|
|
50475
|
+
var x$12$2 = this.path$1;
|
|
50476
|
+
var x$13 = this.isOpaque$1;
|
|
50477
|
+
var x$14 = this.id$1;
|
|
50478
|
+
var x$15 = this.bitEndian$1;
|
|
50479
|
+
var x$16 = this.encoding$1;
|
|
50480
|
+
var x$17 = this.forceDebug$1;
|
|
50481
|
+
var x$18 = this.opaqueTypes$1;
|
|
50482
|
+
var x$19 = this.zeroCopySubstream$1;
|
|
50483
|
+
var x$20 = this.imports$1;
|
|
50484
|
+
return new $c_Lio_kaitai_struct_format_MetaSpec().init___sci_List__Z__s_Option__s_Option__s_Option__s_Option__Z__s_Option__s_Option__sci_List(x$12$2, x$13, x$14, defEndian, x$15, x$16, x$17, x$18, x$19, x$20)
|
|
50430
50485
|
};
|
|
50431
50486
|
throw new $c_s_MatchError().init___O(x1)
|
|
50432
50487
|
});
|
|
50433
50488
|
$c_Lio_kaitai_struct_format_MetaSpec.prototype.fillInDefaults__Lio_kaitai_struct_format_MetaSpec__Lio_kaitai_struct_format_MetaSpec = (function(defSpec) {
|
|
50434
50489
|
return this.fillInEncoding__p1__s_Option__Lio_kaitai_struct_format_MetaSpec(defSpec.encoding$1).fillInEndian__s_Option__Lio_kaitai_struct_format_MetaSpec(defSpec.endian$1).fillInBitEndian__s_Option__Lio_kaitai_struct_format_MetaSpec(defSpec.bitEndian$1)
|
|
50435
50490
|
});
|
|
50491
|
+
$c_Lio_kaitai_struct_format_MetaSpec.prototype.init___sci_List__Z__s_Option__s_Option__s_Option__s_Option__Z__s_Option__s_Option__sci_List = (function(path, isOpaque, id, endian, bitEndian, encoding, forceDebug, opaqueTypes, zeroCopySubstream, imports) {
|
|
50492
|
+
this.path$1 = path;
|
|
50493
|
+
this.isOpaque$1 = isOpaque;
|
|
50494
|
+
this.id$1 = id;
|
|
50495
|
+
this.endian$1 = endian;
|
|
50496
|
+
this.bitEndian$1 = bitEndian;
|
|
50497
|
+
this.encoding$1 = encoding;
|
|
50498
|
+
this.forceDebug$1 = forceDebug;
|
|
50499
|
+
this.opaqueTypes$1 = opaqueTypes;
|
|
50500
|
+
this.zeroCopySubstream$1 = zeroCopySubstream;
|
|
50501
|
+
this.imports$1 = imports;
|
|
50502
|
+
return this
|
|
50503
|
+
});
|
|
50436
50504
|
$c_Lio_kaitai_struct_format_MetaSpec.prototype.fillInBitEndian__s_Option__Lio_kaitai_struct_format_MetaSpec = (function(defBitEndian) {
|
|
50437
50505
|
var x1 = new $c_T2().init___O__O(defBitEndian, this.bitEndian$1);
|
|
50438
50506
|
var p2 = $as_s_Option(x1.$$und1$f);
|
|
@@ -50460,8 +50528,9 @@ $c_Lio_kaitai_struct_format_MetaSpec.prototype.fillInBitEndian__s_Option__Lio_ka
|
|
|
50460
50528
|
var x$6 = this.encoding$1;
|
|
50461
50529
|
var x$7 = this.forceDebug$1;
|
|
50462
50530
|
var x$8 = this.opaqueTypes$1;
|
|
50463
|
-
var x$9 = this.
|
|
50464
|
-
|
|
50531
|
+
var x$9 = this.zeroCopySubstream$1;
|
|
50532
|
+
var x$10 = this.imports$1;
|
|
50533
|
+
return new $c_Lio_kaitai_struct_format_MetaSpec().init___sci_List__Z__s_Option__s_Option__s_Option__s_Option__Z__s_Option__s_Option__sci_List(x$2$2, x$3$2, x$4$2, x$5, defBitEndian, x$6, x$7, x$8, x$9, x$10)
|
|
50465
50534
|
};
|
|
50466
50535
|
throw new $c_s_MatchError().init___O(x1)
|
|
50467
50536
|
});
|
|
@@ -50492,8 +50561,9 @@ $c_Lio_kaitai_struct_format_MetaSpec.prototype.fillInEncoding__p1__s_Option__Lio
|
|
|
50492
50561
|
var x$6 = this.bitEndian$1;
|
|
50493
50562
|
var x$7 = this.forceDebug$1;
|
|
50494
50563
|
var x$8 = this.opaqueTypes$1;
|
|
50495
|
-
var x$9 = this.
|
|
50496
|
-
|
|
50564
|
+
var x$9 = this.zeroCopySubstream$1;
|
|
50565
|
+
var x$10 = this.imports$1;
|
|
50566
|
+
return new $c_Lio_kaitai_struct_format_MetaSpec().init___sci_List__Z__s_Option__s_Option__s_Option__s_Option__Z__s_Option__s_Option__sci_List(x$2$2, x$3$2, x$4$2, x$5, x$6, defEncoding, x$7, x$8, x$9, x$10)
|
|
50497
50567
|
};
|
|
50498
50568
|
throw new $c_s_MatchError().init___O(x1)
|
|
50499
50569
|
});
|
|
@@ -50510,8 +50580,9 @@ $c_Lio_kaitai_struct_format_MetaSpec.prototype.hashCode__I = (function() {
|
|
|
50510
50580
|
acc = $m_sr_Statics$().mix__I__I__I(acc, $m_sr_Statics$().anyHash__O__I(this.encoding$1));
|
|
50511
50581
|
acc = $m_sr_Statics$().mix__I__I__I(acc, (this.forceDebug$1 ? 1231 : 1237));
|
|
50512
50582
|
acc = $m_sr_Statics$().mix__I__I__I(acc, $m_sr_Statics$().anyHash__O__I(this.opaqueTypes$1));
|
|
50583
|
+
acc = $m_sr_Statics$().mix__I__I__I(acc, $m_sr_Statics$().anyHash__O__I(this.zeroCopySubstream$1));
|
|
50513
50584
|
acc = $m_sr_Statics$().mix__I__I__I(acc, $m_sr_Statics$().anyHash__O__I(this.imports$1));
|
|
50514
|
-
return $m_sr_Statics$().finalizeHash__I__I__I(acc,
|
|
50585
|
+
return $m_sr_Statics$().finalizeHash__I__I__I(acc, 10)
|
|
50515
50586
|
});
|
|
50516
50587
|
$c_Lio_kaitai_struct_format_MetaSpec.prototype.productIterator__sc_Iterator = (function() {
|
|
50517
50588
|
return new $c_sr_ScalaRunTime$$anon$1().init___s_Product(this)
|
|
@@ -73492,9 +73563,6 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.runReadCalc__V = (function(
|
|
|
73492
73563
|
this.outSrc$2.dec__V();
|
|
73493
73564
|
this.outSrc$2.puts__T__V("}")
|
|
73494
73565
|
});
|
|
73495
|
-
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.outFileName__T__T = (function(topClassName) {
|
|
73496
|
-
return topClassName
|
|
73497
|
-
});
|
|
73498
73566
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.switchStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, on) {
|
|
73499
73567
|
this.outSrc$2.puts__T__V((("switch (" + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, on)) + ") {"))
|
|
73500
73568
|
});
|
|
@@ -82990,7 +83058,10 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.handleAssignmentRepeatEos_
|
|
|
82990
83058
|
this.out$2.puts__T__V((((this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(id) + ".add(") + expr) + ");"))
|
|
82991
83059
|
});
|
|
82992
83060
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.createSubstreamFixedSize__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__T__T = (function(id, sizeExpr, io) {
|
|
82993
|
-
|
|
83061
|
+
var id$1 = new $c_Lio_kaitai_struct_format_IoStorageIdentifier().init___Lio_kaitai_struct_format_Identifier(id);
|
|
83062
|
+
var ioName = $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id$1);
|
|
83063
|
+
this.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V($m_Lio_kaitai_struct_datatype_DataType$KaitaiStreamType$(), ioName, (((io + ".substream(") + this.translator$2.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(sizeExpr)) + ");"));
|
|
83064
|
+
return ioName
|
|
82994
83065
|
});
|
|
82995
83066
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.handleAssignmentRepeatExpr__Lio_kaitai_struct_format_Identifier__T__V = (function(id, expr) {
|
|
82996
83067
|
this.handleAssignmentRepeatEos__Lio_kaitai_struct_format_Identifier__T__V(id, expr)
|
|
@@ -83049,6 +83120,35 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.condRepeatUntilHeader__Lio
|
|
|
83049
83120
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrParse2__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__T__Lio_kaitai_struct_format_RepeatSpec__Z__s_Option__s_Option__V = (function(id, dataType, io, rep, isRaw, defEndian, assignTypeOpt) {
|
|
83050
83121
|
$f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrParse2__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__T__Lio_kaitai_struct_format_RepeatSpec__Z__s_Option__s_Option__V(this, id, dataType, io, rep, isRaw, defEndian, assignTypeOpt)
|
|
83051
83122
|
});
|
|
83123
|
+
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.extraRawAttrForUserTypeFromBytes__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$UserTypeFromBytes__Lio_kaitai_struct_format_ConditionalSpec__sci_List = (function(id, ut, condSpec) {
|
|
83124
|
+
if (this.config$1.zeroCopySubstream$1) {
|
|
83125
|
+
var x1 = ut.bytes$4;
|
|
83126
|
+
if ((x1 instanceof $c_Lio_kaitai_struct_datatype_DataType$BytesLimitType)) {
|
|
83127
|
+
var x2 = $as_Lio_kaitai_struct_datatype_DataType$BytesLimitType(x1);
|
|
83128
|
+
var p3 = x2.terminator$2;
|
|
83129
|
+
var p5 = x2.padRight$2;
|
|
83130
|
+
var p6 = x2.process$2;
|
|
83131
|
+
var x = $m_s_None$();
|
|
83132
|
+
if ((x === p3)) {
|
|
83133
|
+
var x$3 = $m_s_None$();
|
|
83134
|
+
if ((x$3 === p5)) {
|
|
83135
|
+
var x$5 = $m_s_None$();
|
|
83136
|
+
var jsx$1 = (x$5 === p6)
|
|
83137
|
+
} else {
|
|
83138
|
+
var jsx$1 = false
|
|
83139
|
+
}
|
|
83140
|
+
} else {
|
|
83141
|
+
var jsx$1 = false
|
|
83142
|
+
};
|
|
83143
|
+
if (jsx$1) {
|
|
83144
|
+
return $m_sci_Nil$()
|
|
83145
|
+
}
|
|
83146
|
+
};
|
|
83147
|
+
return $f_Lio_kaitai_struct_languages_components_ExtraAttrs__extraRawAttrForUserTypeFromBytes__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$UserTypeFromBytes__Lio_kaitai_struct_format_ConditionalSpec__sci_List(this, id, ut, condSpec)
|
|
83148
|
+
} else {
|
|
83149
|
+
return $f_Lio_kaitai_struct_languages_components_ExtraAttrs__extraRawAttrForUserTypeFromBytes__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$UserTypeFromBytes__Lio_kaitai_struct_format_ConditionalSpec__sci_List(this, id, ut, condSpec)
|
|
83150
|
+
}
|
|
83151
|
+
});
|
|
83052
83152
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.popPos__T__V = (function(io) {
|
|
83053
83153
|
this.out$2.puts__T__V((io + ".seek(_pos);"))
|
|
83054
83154
|
});
|
|
@@ -83588,8 +83688,8 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.outHeader__Lio_kaitai_stru
|
|
|
83588
83688
|
return this.outHeader$2
|
|
83589
83689
|
});
|
|
83590
83690
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.allocateIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(varName, rep) {
|
|
83591
|
-
var
|
|
83592
|
-
var ioName = (
|
|
83691
|
+
var id = new $c_Lio_kaitai_struct_format_IoStorageIdentifier().init___Lio_kaitai_struct_format_Identifier(varName);
|
|
83692
|
+
var ioName = $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id);
|
|
83593
83693
|
var args = ((rep instanceof $c_Lio_kaitai_struct_format_RepeatUntil) ? this.translator$2.doName__T__T($m_Lio_kaitai_struct_format_Identifier$().ITERATOR2$1) : this.getRawIdExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T(varName, rep));
|
|
83594
83694
|
var this$1 = this.importList$2;
|
|
83595
83695
|
$m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.list$1, "io.kaitai.struct.ByteBufferKaitaiStream");
|
package/package.json
CHANGED