kaitai-struct-compiler 0.11.0-SNAPSHOT20240610.172038.27d5020 → 0.11.0-SNAPSHOT20240713.903.983060d

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.
@@ -3012,8 +3012,8 @@ function $m_Lio_kaitai_struct_Utils$() {
3012
3012
  function $c_Lio_kaitai_struct_Version$() {
3013
3013
  this.Lio_kaitai_struct_Version$__f_version = null;
3014
3014
  this.Lio_kaitai_struct_Version$__f_gitTime = null;
3015
- this.Lio_kaitai_struct_Version$__f_version = "0.11-SNAPSHOT20240610.172038.27d5020";
3016
- this.Lio_kaitai_struct_Version$__f_gitTime = "2024-06-10T17:20:38Z"
3015
+ this.Lio_kaitai_struct_Version$__f_version = "0.11-SNAPSHOT20240713.000903.983060d";
3016
+ this.Lio_kaitai_struct_Version$__f_gitTime = "2024-07-13T00:09:03Z"
3017
3017
  }
3018
3018
  $c_Lio_kaitai_struct_Version$.prototype = new $h_O();
3019
3019
  $c_Lio_kaitai_struct_Version$.prototype.constructor = $c_Lio_kaitai_struct_Version$;
@@ -83706,7 +83706,7 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.strSubstring__Lio_kaitai
83706
83706
  $c_Lio_kaitai_struct_translators_GoTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_TranslatorResult = (function(value) {
83707
83707
  var this$1 = $n(this.Lio_kaitai_struct_translators_GoTranslator__f_importList);
83708
83708
  $m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.Lio_kaitai_struct_ImportList__f_list, "strconv");
83709
- return new $c_Lio_kaitai_struct_translators_ResultString((("strconv.Itoa(int64(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(value, 0)) + "))"))
83709
+ return new $c_Lio_kaitai_struct_translators_ResultString((("strconv.FormatInt(int64(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(value, 0)) + "), 10)"))
83710
83710
  });
83711
83711
  $c_Lio_kaitai_struct_translators_GoTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_ResultString = (function(value) {
83712
83712
  return new $c_Lio_kaitai_struct_translators_ResultString((("int(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(value, 0)) + ")"))
@@ -85588,7 +85588,7 @@ $c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.intToStr__Lio_kaitai
85588
85588
  return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(i, this.Lio_kaitai_struct_translators_BaseTranslator__f_METHOD_PRECEDENCE) + ".ToString()")
85589
85589
  });
85590
85590
  $c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
85591
- return (((("System.Text.Encoding.GetEncoding(\"" + encoding) + "\").GetString(") + bytesExpr) + ")")
85591
+ return (((("System.Text.Encoding.GetEncoding(" + $f_Lio_kaitai_struct_translators_CommonLiterals__doStringLiteral__T__T(this, encoding)) + ").GetString(") + bytesExpr) + ")")
85592
85592
  });
85593
85593
  $c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(s) {
85594
85594
  return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(s, this.Lio_kaitai_struct_translators_BaseTranslator__f_METHOD_PRECEDENCE) + ".Length")
@@ -85831,7 +85831,7 @@ $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.intToStr__Lio_ka
85831
85831
  return (("(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(i, 0)) + ").toString()")
85832
85832
  });
85833
85833
  $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
85834
- return (((("KaitaiStream.bytesToStr(" + bytesExpr) + ", \"") + encoding) + "\")")
85834
+ return (((("KaitaiStream.bytesToStr(" + bytesExpr) + ", ") + $f_Lio_kaitai_struct_translators_CommonLiterals__doStringLiteral__T__T(this, encoding)) + ")")
85835
85835
  });
85836
85836
  $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(s) {
85837
85837
  return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(s, this.Lio_kaitai_struct_translators_BaseTranslator__f_METHOD_PRECEDENCE) + ".length")
@@ -86133,7 +86133,7 @@ $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.bytesToStr__T__T__T =
86133
86133
  };
86134
86134
  var this$16 = $n(this.Lio_kaitai_struct_translators_JavaTranslator__f_importList);
86135
86135
  $m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$16.Lio_kaitai_struct_ImportList__f_list, "java.nio.charset.Charset");
86136
- var charsetExpr = (("Charset.forName(\"" + encoding) + "\")")
86136
+ var charsetExpr = (("Charset.forName(" + $f_Lio_kaitai_struct_translators_CommonLiterals__doStringLiteral__T__T(this, encoding)) + ")")
86137
86137
  };
86138
86138
  return (((("new String(" + bytesExpr) + ", ") + charsetExpr) + ")")
86139
86139
  });
@@ -86285,7 +86285,7 @@ function $h_Lio_kaitai_struct_translators_NimTranslator() {
86285
86285
  }
86286
86286
  $h_Lio_kaitai_struct_translators_NimTranslator.prototype = $c_Lio_kaitai_struct_translators_NimTranslator.prototype;
86287
86287
  $c_Lio_kaitai_struct_translators_NimTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
86288
- return (((("encode(" + bytesExpr) + ", \"") + encoding) + "\")")
86288
+ return (((("encode(" + bytesExpr) + ", ") + $f_Lio_kaitai_struct_translators_CommonLiterals__doStringLiteral__T__T(this, encoding)) + ")")
86289
86289
  });
86290
86290
  $c_Lio_kaitai_struct_translators_NimTranslator.prototype.doEnumById__Lio_kaitai_struct_format_EnumSpec__T__T = (function(enumSpec, id) {
86291
86291
  return ((($m_Lio_kaitai_struct_languages_NimCompiler$().namespaced__sci_List__T($n(enumSpec).Lio_kaitai_struct_format_EnumSpec__f_name) + "(") + id) + ")")
@@ -86781,7 +86781,7 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.intToStr__Lio_kaitai_s
86781
86781
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
86782
86782
  var this$1 = $n(this.Lio_kaitai_struct_translators_PerlTranslator__f_importList);
86783
86783
  $m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.Lio_kaitai_struct_ImportList__f_list, "Encode");
86784
- return (((("Encode::decode(\"" + encoding) + "\", ") + bytesExpr) + ")")
86784
+ return (((("Encode::decode(" + $f_Lio_kaitai_struct_translators_CommonLiterals__doStringLiteral__T__T(this, encoding)) + ", ") + bytesExpr) + ")")
86785
86785
  });
86786
86786
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesSubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(container, idx) {
86787
86787
  return (((("unpack('C', substr(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(container, 0)) + ", ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(idx, 0)) + ", 1))")
@@ -87066,7 +87066,7 @@ $c_Lio_kaitai_struct_translators_PythonTranslator.prototype.intToStr__Lio_kaitai
87066
87066
  return (("str(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(i, 0)) + ")")
87067
87067
  });
87068
87068
  $c_Lio_kaitai_struct_translators_PythonTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
87069
- return (((("(" + bytesExpr) + ").decode(\"") + encoding) + "\")")
87069
+ return (((("(" + bytesExpr) + ").decode(") + this.doStringLiteral__T__T(encoding)) + ")")
87070
87070
  });
87071
87071
  $c_Lio_kaitai_struct_translators_PythonTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
87072
87072
  return (("len(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(value, 0)) + ")")
@@ -87333,7 +87333,7 @@ $c_Lio_kaitai_struct_translators_RubyTranslator.prototype.intToStr__Lio_kaitai_s
87333
87333
  return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(i, this.Lio_kaitai_struct_translators_BaseTranslator__f_METHOD_PRECEDENCE) + ".to_s")
87334
87334
  });
87335
87335
  $c_Lio_kaitai_struct_translators_RubyTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
87336
- return ((((("(" + bytesExpr) + ").force_encoding(\"") + encoding) + "\")") + ((encoding !== "UTF-8") ? ".encode('UTF-8')" : ""))
87336
+ return ((((("(" + bytesExpr) + ").force_encoding(") + $f_Lio_kaitai_struct_translators_CommonLiterals__doStringLiteral__T__T(this, encoding)) + ")") + ((encoding !== "UTF-8") ? ".encode('UTF-8')" : ""))
87337
87337
  });
87338
87338
  $c_Lio_kaitai_struct_translators_RubyTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
87339
87339
  return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(b, this.Lio_kaitai_struct_translators_BaseTranslator__f_METHOD_PRECEDENCE) + ".size")
@@ -88554,7 +88554,7 @@ $c_Lio_kaitai_struct_translators_CppTranslator.prototype.intToStr__Lio_kaitai_st
88554
88554
  return (("kaitai::kstream::to_string(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(i, 0)) + ")")
88555
88555
  });
88556
88556
  $c_Lio_kaitai_struct_translators_CppTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
88557
- return (((("kaitai::kstream::bytes_to_str(" + bytesExpr) + ", \"") + encoding) + "\")")
88557
+ return (((("kaitai::kstream::bytes_to_str(" + bytesExpr) + ", ") + $f_Lio_kaitai_struct_translators_CommonLiterals__doStringLiteral__T__T(this, encoding)) + ")")
88558
88558
  });
88559
88559
  $c_Lio_kaitai_struct_translators_CppTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
88560
88560
  return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(b, this.Lio_kaitai_struct_translators_BaseTranslator__f_METHOD_PRECEDENCE) + ".length()")
@@ -88837,7 +88837,7 @@ $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.intToStr__Lio_kaitai_st
88837
88837
  $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
88838
88838
  var this$1 = $n(this.Lio_kaitai_struct_translators_LuaTranslator__f_importList);
88839
88839
  $m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.Lio_kaitai_struct_ImportList__f_list, "local str_decode = require(\"string_decode\")");
88840
- return (((("str_decode.decode(" + bytesExpr) + ", \"") + encoding) + "\")")
88840
+ return (((("str_decode.decode(" + bytesExpr) + ", ") + $f_Lio_kaitai_struct_translators_CommonLiterals__doStringLiteral__T__T(this, encoding)) + ")")
88841
88841
  });
88842
88842
  $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.bytesSubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(container, idx) {
88843
88843
  return (((("string.byte(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(container, 0)) + ", ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(idx, 0)) + " + 1)")
@@ -89177,7 +89177,7 @@ $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.intToStr__Lio_kaitai_st
89177
89177
  return (("strval(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(i, 0)) + ")")
89178
89178
  });
89179
89179
  $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
89180
- return (((("\\Kaitai\\Struct\\Stream::bytesToStr(" + bytesExpr) + ", \"") + encoding) + "\")")
89180
+ return (((("\\Kaitai\\Struct\\Stream::bytesToStr(" + bytesExpr) + ", ") + $f_Lio_kaitai_struct_translators_CommonLiterals__doStringLiteral__T__T(this, encoding)) + ")")
89181
89181
  });
89182
89182
  $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
89183
89183
  return (("strlen(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(b, 0)) + ")")
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.11.0-SNAPSHOT20240610.172038.27d5020"
38
+ "version": "0.11.0-SNAPSHOT20240713.000903.983060d"
39
39
  }