kaitai-struct-compiler 0.12.0-SNAPSHOT20251110.202039.1a11e75 → 0.12.0-SNAPSHOT20251118.151958.4d1f585

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.
@@ -3038,8 +3038,8 @@ function $m_Lio_kaitai_struct_Utils$() {
3038
3038
  function $c_Lio_kaitai_struct_Version$() {
3039
3039
  this.Lio_kaitai_struct_Version$__f_version = null;
3040
3040
  this.Lio_kaitai_struct_Version$__f_gitTime = null;
3041
- this.Lio_kaitai_struct_Version$__f_version = "0.12-SNAPSHOT20251110.202039.1a11e75";
3042
- this.Lio_kaitai_struct_Version$__f_gitTime = "2025-11-10T20:20:39Z"
3041
+ this.Lio_kaitai_struct_Version$__f_version = "0.12-SNAPSHOT20251118.151958.4d1f585";
3042
+ this.Lio_kaitai_struct_Version$__f_gitTime = "2025-11-18T15:19:58Z"
3043
3043
  }
3044
3044
  $c_Lio_kaitai_struct_Version$.prototype = new $h_O();
3045
3045
  $c_Lio_kaitai_struct_Version$.prototype.constructor = $c_Lio_kaitai_struct_Version$;
@@ -34618,19 +34618,12 @@ $c_Lio_kaitai_struct_ClassCompiler.prototype.compileSeqWriteProc__sci_List__sci_
34618
34618
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).writeFooter__V()
34619
34619
  });
34620
34620
  $c_Lio_kaitai_struct_ClassCompiler.prototype.compileSeqRead__sci_List__s_Option__V = (function(seq, defEndian) {
34621
- var elem = false;
34622
- elem = false;
34623
- var this$2 = $n(seq);
34624
- var these = this$2;
34621
+ var this$1 = $n(seq);
34622
+ var these = this$1;
34625
34623
  while ((!$n(these).isEmpty__Z())) {
34626
34624
  var arg1 = $n(these).head__O();
34627
34625
  var attr = $as_Lio_kaitai_struct_format_AttrSpec(arg1);
34628
- var nowUnaligned = this.isUnalignedBits__Lio_kaitai_struct_datatype_DataType__Z($n(attr).Lio_kaitai_struct_format_AttrSpec__f_dataType);
34629
- if ((elem && (!nowUnaligned))) {
34630
- $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).alignToByte__T__V($n(this.Lio_kaitai_struct_ClassCompiler__f_lang).normalIO__T())
34631
- };
34632
34626
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).attrParse__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_format_Identifier__s_Option__V(attr, $n(attr).Lio_kaitai_struct_format_AttrSpec__f_id, defEndian);
34633
- elem = nowUnaligned;
34634
34627
  these = $as_sci_List($n(these).tail__O())
34635
34628
  }
34636
34629
  });
@@ -34839,16 +34832,6 @@ $c_Lio_kaitai_struct_ClassCompiler.prototype.compileEnum__Lio_kaitai_struct_form
34839
34832
  var this$1 = $n($n(enumColl).Lio_kaitai_struct_format_EnumSpec__f_map);
34840
34833
  $n($$x3).enumDeclaration__sci_List__T__sci_Seq__V($$x2, $$x1, $m_sci_Seq$().from__sc_IterableOnce__sci_Seq(this$1))
34841
34834
  });
34842
- $c_Lio_kaitai_struct_ClassCompiler.prototype.isUnalignedBits__Lio_kaitai_struct_datatype_DataType__Z = (function(dt) {
34843
- if (((dt instanceof $c_Lio_kaitai_struct_datatype_DataType$BitsType) || (dt instanceof $c_Lio_kaitai_struct_datatype_DataType$BitsType1))) {
34844
- return true
34845
- } else if ((dt instanceof $c_Lio_kaitai_struct_datatype_DataType$EnumType)) {
34846
- var x4 = $as_Lio_kaitai_struct_datatype_DataType$EnumType(dt);
34847
- return this.isUnalignedBits__Lio_kaitai_struct_datatype_DataType__Z($n(x4).Lio_kaitai_struct_datatype_DataType$EnumType__f_basedOn)
34848
- } else {
34849
- return false
34850
- }
34851
- });
34852
34835
  $c_Lio_kaitai_struct_ClassCompiler.prototype.compileClassDoc__Lio_kaitai_struct_format_ClassSpec__V = (function(curClass) {
34853
34836
  if ((!$n($n(curClass).Lio_kaitai_struct_format_ClassSpec__f_doc).isEmpty__Z())) {
34854
34837
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).classDoc__sci_List__Lio_kaitai_struct_format_DocSpec__V($n(curClass).Lio_kaitai_struct_format_ClassSpec__f_name, $n(curClass).Lio_kaitai_struct_format_ClassSpec__f_doc)
@@ -44803,22 +44786,15 @@ $c_Lio_kaitai_struct_NimClassCompiler.prototype.compileEagerRead__sci_List__s_Op
44803
44786
  }
44804
44787
  });
44805
44788
  $c_Lio_kaitai_struct_NimClassCompiler.prototype.compileSeqRead__sci_List__s_Option__V = (function(seq, defEndian) {
44806
- var elem = false;
44807
- elem = false;
44808
- var this$2 = $n(seq);
44809
- var these = this$2;
44789
+ var this$1 = $n(seq);
44790
+ var these = this$1;
44810
44791
  while ((!$n(these).isEmpty__Z())) {
44811
44792
  var arg1 = $n(these).head__O();
44812
44793
  var attr = $as_Lio_kaitai_struct_format_AttrSpec(arg1);
44813
- var nowUnaligned = this.isUnalignedBits__Lio_kaitai_struct_datatype_DataType__Z($n(attr).Lio_kaitai_struct_format_AttrSpec__f_dataType);
44814
- if ((elem && (!nowUnaligned))) {
44815
- $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).alignToByte__T__V($n(this.Lio_kaitai_struct_ClassCompiler__f_lang).normalIO__T())
44816
- };
44817
44794
  if ((!$n($n(attr).Lio_kaitai_struct_format_AttrSpec__f_doc).isEmpty__Z())) {
44818
44795
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).attributeDoc__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_DocSpec__V($n(attr).Lio_kaitai_struct_format_AttrSpec__f_id, $n(attr).Lio_kaitai_struct_format_AttrSpec__f_doc)
44819
44796
  };
44820
44797
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).attrParse__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_format_Identifier__s_Option__V(attr, $n(attr).Lio_kaitai_struct_format_AttrSpec__f_id, defEndian);
44821
- elem = nowUnaligned;
44822
44798
  these = $as_sci_List($n(these).tail__O())
44823
44799
  }
44824
44800
  });
@@ -96628,9 +96604,6 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.seek__T__Lio_kaitai_struct_
96628
96604
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.popPos__T__V = (function(io) {
96629
96605
  $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V((io + "->seek(_pos);"))
96630
96606
  });
96631
- $c_Lio_kaitai_struct_languages_CppCompiler.prototype.alignToByte__T__V = (function(io) {
96632
- $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V((io + "->align_to_byte();"))
96633
- });
96634
96607
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.instanceClear__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
96635
96608
  $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V((this.calculatedFlagForName__Lio_kaitai_struct_format_Identifier__T(instName) + " = false;"))
96636
96609
  });
@@ -98498,9 +98471,6 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.seek__T__Lio_kaitai_
98498
98471
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.popPos__T__V = (function(io) {
98499
98472
  $n(this.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).puts__T__V((io + ".seek(_pos);"))
98500
98473
  });
98501
- $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.alignToByte__T__V = (function(io) {
98502
- $n(this.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).puts__T__V((io + ".alignToByte();"))
98503
- });
98504
98474
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.attrDebugStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__s_Option__Lio_kaitai_struct_format_RepeatSpec__V = (function(attrId, attrType, io, rep) {
98505
98475
  var debugName = this.attrDebugName__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__Z__T(attrId, rep, false);
98506
98476
  var x = $m_s_None$();
@@ -99429,9 +99399,6 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.seek__T__Lio_kaitai_struct_
99429
99399
  $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.popPos__T__V = (function(io) {
99430
99400
  $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).puts__T__V((io + "->seek($_pos);"))
99431
99401
  });
99432
- $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.alignToByte__T__V = (function(io) {
99433
- $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).puts__T__V((io + "->alignToByte();"))
99434
- });
99435
99402
  $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.condIfHeader__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(expr) {
99436
99403
  $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).puts__T__V((("if (" + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, expr)) + ") {"));
99437
99404
  $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).inc__V()
@@ -100178,9 +100145,6 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.seek__T__Lio_kaitai_struct
100178
100145
  $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.popPos__T__V = (function(io) {
100179
100146
  $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V((io + "->seek($_pos);"))
100180
100147
  });
100181
- $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.alignToByte__T__V = (function(io) {
100182
- $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V((io + "->align_to_byte();"))
100183
- });
100184
100148
  $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.condIfHeader__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(expr) {
100185
100149
  $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V((("if (" + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, expr)) + ") {"));
100186
100150
  $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).inc__V()
@@ -101022,9 +100986,6 @@ $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.seek__T__Lio_kaitai_stru
101022
100986
  $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.popPos__T__V = (function(io) {
101023
100987
  $n(this.Lio_kaitai_struct_languages_CSharpCompiler__f_out).puts__T__V((io + ".Seek(_pos);"))
101024
100988
  });
101025
- $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.alignToByte__T__V = (function(io) {
101026
- $n(this.Lio_kaitai_struct_languages_CSharpCompiler__f_out).puts__T__V((io + ".AlignToByte();"))
101027
- });
101028
100989
  $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.instanceClear__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
101029
100990
  $n(this.Lio_kaitai_struct_languages_CSharpCompiler__f_out).puts__T__V((this.flagForInstName__Lio_kaitai_struct_format_Identifier__T(instName) + " = false;"))
101030
100991
  });
@@ -102010,9 +101971,6 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.popPos__T__V = (function(io)
102010
101971
  $n(this.Lio_kaitai_struct_languages_GoCompiler__f_out).puts__T__V((("_, err = " + io) + ".Seek(_pos, io.SeekStart)"));
102011
101972
  $n(this.Lio_kaitai_struct_languages_GoCompiler__f_translator).outAddErrCheck__V()
102012
101973
  });
102013
- $c_Lio_kaitai_struct_languages_GoCompiler.prototype.alignToByte__T__V = (function(io) {
102014
- $n(this.Lio_kaitai_struct_languages_GoCompiler__f_out).puts__T__V((io + ".AlignToByte()"))
102015
- });
102016
101974
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.condIfHeader__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(expr) {
102017
101975
  $n(this.Lio_kaitai_struct_languages_GoCompiler__f_out).puts__T__V((("if (" + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, expr)) + ") {"));
102018
101976
  $n(this.Lio_kaitai_struct_languages_GoCompiler__f_out).inc__V()
@@ -102793,9 +102751,6 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.seek__T__Lio_kaitai_struct_
102793
102751
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.popPos__T__V = (function(io) {
102794
102752
  $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out).puts__T__V((io + ":seek(_pos)"))
102795
102753
  });
102796
- $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.alignToByte__T__V = (function(io) {
102797
- $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out).puts__T__V((io + ":align_to_byte()"))
102798
- });
102799
102754
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.instanceHeader__sci_List__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(className, instName, dataType, isNullable) {
102800
102755
  $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out).puts__T__V(((($m_Lio_kaitai_struct_languages_LuaCompiler$().types2class__sci_List__T(className) + ".property.") + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + " = {}"));
102801
102756
  $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out).puts__T__V((((("function " + $m_Lio_kaitai_struct_languages_LuaCompiler$().types2class__sci_List__T(className)) + ".property.") + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + ":get()"));
@@ -103326,9 +103281,6 @@ $c_Lio_kaitai_struct_languages_NimCompiler.prototype.outImports__Lio_kaitai_stru
103326
103281
  var this$4 = $n($$x1);
103327
103282
  return ($f_sc_IterableOnceOps__mkString__T__T__T__T(this$4, "", "\n", "") + "\n\n")
103328
103283
  });
103329
- $c_Lio_kaitai_struct_languages_NimCompiler.prototype.alignToByte__T__V = (function(io) {
103330
- $n(this.Lio_kaitai_struct_languages_NimCompiler__f_out).puts__T__V((("alignToByte(" + io) + ")"))
103331
- });
103332
103284
  $c_Lio_kaitai_struct_languages_NimCompiler.prototype.attrParseHybrid__F0__F0__V = (function(leProc, beProc) {
103333
103285
  $n(this.Lio_kaitai_struct_languages_NimCompiler__f_out).puts__T__V("if this.isLe:");
103334
103286
  $n(this.Lio_kaitai_struct_languages_NimCompiler__f_out).inc__V();
@@ -104447,9 +104399,6 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.seek__T__Lio_kaitai_struct
104447
104399
  $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.popPos__T__V = (function(io) {
104448
104400
  $n(this.Lio_kaitai_struct_languages_RubyCompiler__f_out).puts__T__V((io + ".seek(_pos)"))
104449
104401
  });
104450
- $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.alignToByte__T__V = (function(io) {
104451
- $n(this.Lio_kaitai_struct_languages_RubyCompiler__f_out).puts__T__V((io + ".align_to_byte"))
104452
- });
104453
104402
  $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.attrDebugStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__s_Option__Lio_kaitai_struct_format_RepeatSpec__V = (function(attrId, attrType, ios, rep) {
104454
104403
  var this$1 = $n(ios);
104455
104404
  if ((!this$1.isEmpty__Z())) {
@@ -105392,11 +105341,6 @@ $c_Lio_kaitai_struct_languages_RustCompiler.prototype.seek__T__Lio_kaitai_struct
105392
105341
  $c_Lio_kaitai_struct_languages_RustCompiler.prototype.popPos__T__V = (function(io) {
105393
105342
  $n(this.Lio_kaitai_struct_languages_RustCompiler__f_out).puts__T__V((io + ".seek(_pos)?;"))
105394
105343
  });
105395
- $c_Lio_kaitai_struct_languages_RustCompiler.prototype.alignToByte__T__V = (function(io) {
105396
- var $$x1 = $n(this.Lio_kaitai_struct_languages_RustCompiler__f_out);
105397
- var id = $m_Lio_kaitai_struct_format_IoIdentifier$();
105398
- $n($$x1).puts__T__V(($m_Lio_kaitai_struct_languages_RustCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__Z__T(id, false) + ".align_to_byte()?;"))
105399
- });
105400
105344
  $c_Lio_kaitai_struct_languages_RustCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
105401
105345
  return $m_Lio_kaitai_struct_languages_RustCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__Z__T(id, false)
105402
105346
  });
@@ -107400,9 +107344,6 @@ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.seek__T__Lio_kaitai_struct_
107400
107344
  $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.popPos__T__V = (function(io) {
107401
107345
  $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((("try " + io) + ".seek(_pos);"))
107402
107346
  });
107403
- $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.alignToByte__T__V = (function(io) {
107404
- /*<skip>*/
107405
- });
107406
107347
  $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.condIfHeader__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(expr) {
107407
107348
  $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((("if (" + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, expr)) + ") {"));
107408
107349
  $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V()
@@ -110157,9 +110098,6 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.seekRelative__T__T__V = (f
110157
110098
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.popPos__T__V = (function(io) {
110158
110099
  $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((io + ".seek(_pos);"))
110159
110100
  });
110160
- $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.alignToByte__T__V = (function(io) {
110161
- /*<skip>*/
110162
- });
110163
110101
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrDebugStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__s_Option__Lio_kaitai_struct_format_RepeatSpec__V = (function(attrId, attrType, ios, rep) {
110164
110102
  var this$1 = $n(ios);
110165
110103
  if ((!this$1.isEmpty__Z())) {
@@ -111755,9 +111693,6 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.seekRelative__T__T__V =
111755
111693
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.popPos__T__V = (function(io) {
111756
111694
  $n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((io + ".seek(_pos)"))
111757
111695
  });
111758
- $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.alignToByte__T__V = (function(io) {
111759
- /*<skip>*/
111760
- });
111761
111696
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrDebugStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__s_Option__Lio_kaitai_struct_format_RepeatSpec__V = (function(attrId, attrType, ios, rep) {
111762
111697
  var this$1 = $n(ios);
111763
111698
  if ((!this$1.isEmpty__Z())) {
package/package.json CHANGED
@@ -35,5 +35,5 @@
35
35
  "scripts": {
36
36
  "test": "echo \"Error: no test specified\" && exit 1"
37
37
  },
38
- "version": "0.12.0-SNAPSHOT20251110.202039.1a11e75"
38
+ "version": "0.12.0-SNAPSHOT20251118.151958.4d1f585"
39
39
  }