kaitai-struct-compiler 0.11.0-SNAPSHOT20240302.124222.b47078c → 0.11.0-SNAPSHOT20240303.235100.7be4a2b
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 +83 -128
- package/package.json +1 -1
|
@@ -2974,8 +2974,8 @@ function $m_Lio_kaitai_struct_Utils$() {
|
|
|
2974
2974
|
function $c_Lio_kaitai_struct_Version$() {
|
|
2975
2975
|
this.Lio_kaitai_struct_Version$__f_version = null;
|
|
2976
2976
|
this.Lio_kaitai_struct_Version$__f_gitTime = null;
|
|
2977
|
-
this.Lio_kaitai_struct_Version$__f_version = "0.11-
|
|
2978
|
-
this.Lio_kaitai_struct_Version$__f_gitTime = "2024-03-
|
|
2977
|
+
this.Lio_kaitai_struct_Version$__f_version = "0.11-SNAPSHOT20240303.235100.7be4a2b";
|
|
2978
|
+
this.Lio_kaitai_struct_Version$__f_gitTime = "2024-03-03T23:51:00+00:00"
|
|
2979
2979
|
}
|
|
2980
2980
|
$c_Lio_kaitai_struct_Version$.prototype = new $h_O();
|
|
2981
2981
|
$c_Lio_kaitai_struct_Version$.prototype.constructor = $c_Lio_kaitai_struct_Version$;
|
|
@@ -18677,18 +18677,18 @@ function $c_Lio_kaitai_struct_precompile_CanonicalizeEncodingNames$() {
|
|
|
18677
18677
|
var aliases = $as_sci_Set($n(x0$1).T2__f__2);
|
|
18678
18678
|
return $as_sci_Set($n(aliases).map__F1__O(new $c_sjsr_AnonFunction1(((alias$2) => {
|
|
18679
18679
|
var alias = $as_T(alias$2);
|
|
18680
|
-
var this$
|
|
18681
|
-
return new $c_T2($as_T(this$
|
|
18680
|
+
var this$3 = $n(alias);
|
|
18681
|
+
return new $c_T2($as_T(this$3.toUpperCase()), canonical)
|
|
18682
18682
|
}))))
|
|
18683
18683
|
} else {
|
|
18684
18684
|
throw new $c_s_MatchError(x0$1)
|
|
18685
18685
|
}
|
|
18686
18686
|
}))));
|
|
18687
|
-
var this$
|
|
18688
|
-
this.Lio_kaitai_struct_precompile_CanonicalizeEncodingNames$__f_aliasToCanonical = $as_sci_Map($n($$x1).$plus$plus__sc_IterableOnce__sc_IterableOps($as_sc_IterableOnce($n(this$
|
|
18687
|
+
var this$4 = $n($m_Lio_kaitai_struct_EncodingList$().Lio_kaitai_struct_EncodingList$__f_canonicalToAlias);
|
|
18688
|
+
this.Lio_kaitai_struct_precompile_CanonicalizeEncodingNames$__f_aliasToCanonical = $as_sci_Map($n($$x1).$plus$plus__sc_IterableOnce__sc_IterableOps($as_sc_IterableOnce($n(this$4.keySet__sc_Set()).map__F1__O(new $c_sjsr_AnonFunction1(((x$2) => {
|
|
18689
18689
|
var x = $as_T(x$2);
|
|
18690
|
-
var this$
|
|
18691
|
-
var self = $as_T(this$
|
|
18690
|
+
var this$6 = $n(x);
|
|
18691
|
+
var self = $as_T(this$6.toUpperCase());
|
|
18692
18692
|
return new $c_T2(self, x)
|
|
18693
18693
|
}))))))
|
|
18694
18694
|
}
|
|
@@ -18704,8 +18704,8 @@ $c_Lio_kaitai_struct_precompile_CanonicalizeEncodingNames$.prototype.canonicaliz
|
|
|
18704
18704
|
return new $c_T2(original, $m_s_None$())
|
|
18705
18705
|
} else {
|
|
18706
18706
|
var $$x1 = $n(this.Lio_kaitai_struct_precompile_CanonicalizeEncodingNames$__f_aliasToCanonical);
|
|
18707
|
-
var this$
|
|
18708
|
-
var x1 = $n($$x1).get__O__s_Option($as_T(this$
|
|
18707
|
+
var this$2 = $n(original);
|
|
18708
|
+
var x1 = $n($$x1).get__O__s_Option($as_T(this$2.toUpperCase()));
|
|
18709
18709
|
if ((x1 instanceof $c_s_Some)) {
|
|
18710
18710
|
var x2 = $as_s_Some(x1);
|
|
18711
18711
|
var canonical = $as_T($n(x2).s_Some__f_value);
|
|
@@ -19671,8 +19671,7 @@ function $f_Lio_kaitai_struct_translators_CommonMethods__translateAttribute__Lio
|
|
|
19671
19671
|
} else if ((valType instanceof $c_Lio_kaitai_struct_datatype_DataType$IntType)) {
|
|
19672
19672
|
var x1$5 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
|
|
19673
19673
|
if ((x1$5 === "to_s")) {
|
|
19674
|
-
|
|
19675
|
-
return $thiz.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O(value, new $c_Lio_kaitai_struct_exprlang_Ast$expr$IntNum(this$2.apply__I__s_math_BigInt(10)))
|
|
19674
|
+
return $thiz.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O(value)
|
|
19676
19675
|
} else {
|
|
19677
19676
|
throw new $c_s_MatchError(x1$5)
|
|
19678
19677
|
}
|
|
@@ -51242,10 +51241,6 @@ $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.strSubstring__Lio
|
|
|
51242
51241
|
this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(from);
|
|
51243
51242
|
this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(to)
|
|
51244
51243
|
});
|
|
51245
|
-
$c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(value, num) {
|
|
51246
|
-
this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(value);
|
|
51247
|
-
this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(num)
|
|
51248
|
-
});
|
|
51249
51244
|
$c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.byteSizeOfValue__T__Lio_kaitai_struct_datatype_DataType__O = (function(attrName, valType) {
|
|
51250
51245
|
$m_Lio_kaitai_struct_translators_CommonSizeOf$().getBitsSizeOfType__T__Lio_kaitai_struct_datatype_DataType__I(attrName, valType)
|
|
51251
51246
|
});
|
|
@@ -51282,8 +51277,8 @@ $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.kaitaiStreamSize_
|
|
|
51282
51277
|
$c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
51283
51278
|
this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(value)
|
|
51284
51279
|
});
|
|
51285
|
-
$c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
51286
|
-
this.
|
|
51280
|
+
$c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
51281
|
+
this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(value)
|
|
51287
51282
|
});
|
|
51288
51283
|
$c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.bytesToStr__Lio_kaitai_struct_exprlang_Ast$expr__T__O = (function(value, encoding) {
|
|
51289
51284
|
this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(value)
|
|
@@ -81799,9 +81794,7 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.doInterpolatedStringLi
|
|
|
81799
81794
|
$c_Lio_kaitai_struct_translators_BaseTranslator.prototype.anyToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
|
|
81800
81795
|
var x1 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(value);
|
|
81801
81796
|
if ((x1 instanceof $c_Lio_kaitai_struct_datatype_DataType$IntType)) {
|
|
81802
|
-
|
|
81803
|
-
var base = new $c_Lio_kaitai_struct_exprlang_Ast$expr$IntNum(this$1.apply__I__s_math_BigInt(10));
|
|
81804
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(value, base)
|
|
81797
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
81805
81798
|
} else if ((x1 instanceof $c_Lio_kaitai_struct_datatype_DataType$StrType)) {
|
|
81806
81799
|
return this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
81807
81800
|
} else {
|
|
@@ -82431,10 +82424,10 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.strToInt__Lio_kaitai_str
|
|
|
82431
82424
|
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_TranslatorResult = (function(s, from, to) {
|
|
82432
82425
|
return new $c_Lio_kaitai_struct_translators_ResultString((((((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s) + "[") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(from)) + ":") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(to)) + "]"))
|
|
82433
82426
|
});
|
|
82434
|
-
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
82427
|
+
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_TranslatorResult = (function(value) {
|
|
82435
82428
|
var this$1 = $n(this.Lio_kaitai_struct_translators_GoTranslator__f_importList);
|
|
82436
82429
|
$m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.Lio_kaitai_struct_ImportList__f_list, "strconv");
|
|
82437
|
-
return new $c_Lio_kaitai_struct_translators_ResultString(((
|
|
82430
|
+
return new $c_Lio_kaitai_struct_translators_ResultString((("strconv.Itoa(int64(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value)) + "))"))
|
|
82438
82431
|
});
|
|
82439
82432
|
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_ResultString = (function(value) {
|
|
82440
82433
|
return new $c_Lio_kaitai_struct_translators_ResultString((("int(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value)) + ")"))
|
|
@@ -82634,8 +82627,8 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.kaitaiStreamSize__Lio_ka
|
|
|
82634
82627
|
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
82635
82628
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_ResultString(value)
|
|
82636
82629
|
});
|
|
82637
|
-
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
82638
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
82630
|
+
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
82631
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_TranslatorResult(value)
|
|
82639
82632
|
});
|
|
82640
82633
|
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s, from, to) {
|
|
82641
82634
|
return this.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_TranslatorResult(s, from, to)
|
|
@@ -84301,10 +84294,8 @@ $c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.strToInt__Lio_kaitai
|
|
|
84301
84294
|
$c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
84302
84295
|
return (("(long) (" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ")")
|
|
84303
84296
|
});
|
|
84304
|
-
$c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
84305
|
-
|
|
84306
|
-
$m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.Lio_kaitai_struct_ImportList__f_list, "System");
|
|
84307
|
-
return (((("Convert.ToString((long) (" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + "), ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(base)) + ")")
|
|
84297
|
+
$c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i) {
|
|
84298
|
+
return (("(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ").ToString()")
|
|
84308
84299
|
});
|
|
84309
84300
|
$c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
|
|
84310
84301
|
return (((("System.Text.Encoding.GetEncoding(\"" + encoding) + "\").GetString(") + bytesExpr) + ")")
|
|
@@ -84375,8 +84366,8 @@ $c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.strReverse__Lio_kait
|
|
|
84375
84366
|
$c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.strLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
|
|
84376
84367
|
return this.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
|
|
84377
84368
|
});
|
|
84378
|
-
$c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
84379
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
84369
|
+
$c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
84370
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
84380
84371
|
});
|
|
84381
84372
|
$c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
84382
84373
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
@@ -84533,8 +84524,8 @@ $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.boolToInt__Lio_k
|
|
|
84533
84524
|
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
84534
84525
|
return (("Math.trunc(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ")")
|
|
84535
84526
|
});
|
|
84536
|
-
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
84537
|
-
return ((
|
|
84527
|
+
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i) {
|
|
84528
|
+
return (("(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ").toString()")
|
|
84538
84529
|
});
|
|
84539
84530
|
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
|
|
84540
84531
|
return (((("KaitaiStream.bytesToStr(" + bytesExpr) + ", \"") + encoding) + "\")")
|
|
@@ -84594,8 +84585,8 @@ $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.strReverse__Lio_
|
|
|
84594
84585
|
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.strLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
|
|
84595
84586
|
return this.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
|
|
84596
84587
|
});
|
|
84597
|
-
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
84598
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
84588
|
+
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
84589
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
84599
84590
|
});
|
|
84600
84591
|
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
84601
84592
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
@@ -84813,8 +84804,8 @@ $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.enumToInt__Lio_kaitai_
|
|
|
84813
84804
|
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
84814
84805
|
return (("(int) (" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + " + 0)")
|
|
84815
84806
|
});
|
|
84816
|
-
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
84817
|
-
return ((
|
|
84807
|
+
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i) {
|
|
84808
|
+
return (("Long.toString(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
|
|
84818
84809
|
});
|
|
84819
84810
|
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
|
|
84820
84811
|
var this$14 = $n($m_s_Predef$().s_Predef$__f_Map);
|
|
@@ -84928,8 +84919,8 @@ $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.bytesSubscript__Lio_ka
|
|
|
84928
84919
|
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
84929
84920
|
return this.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
84930
84921
|
});
|
|
84931
|
-
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
84932
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
84922
|
+
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
84923
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
84933
84924
|
});
|
|
84934
84925
|
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
84935
84926
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
@@ -85191,7 +85182,7 @@ $c_Lio_kaitai_struct_translators_NimTranslator.prototype.enumToInt__Lio_kaitai_s
|
|
|
85191
85182
|
$c_Lio_kaitai_struct_translators_NimTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
85192
85183
|
return (("int(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ")")
|
|
85193
85184
|
});
|
|
85194
|
-
$c_Lio_kaitai_struct_translators_NimTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
85185
|
+
$c_Lio_kaitai_struct_translators_NimTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
85195
85186
|
var this$1 = $n(this.Lio_kaitai_struct_translators_NimTranslator__f_importList);
|
|
85196
85187
|
$m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.Lio_kaitai_struct_ImportList__f_list, "strutils");
|
|
85197
85188
|
return (("intToStr(int(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + "))")
|
|
@@ -85210,6 +85201,17 @@ $c_Lio_kaitai_struct_translators_NimTranslator.prototype.strSubstring__Lio_kaita
|
|
|
85210
85201
|
$c_Lio_kaitai_struct_translators_NimTranslator.prototype.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(s, base) {
|
|
85211
85202
|
return (((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s) + ".parseInt(") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(base)) + ")")
|
|
85212
85203
|
});
|
|
85204
|
+
$c_Lio_kaitai_struct_translators_NimTranslator.prototype.doInterpolatedStringLiteral__sci_Seq__T = (function(exprs) {
|
|
85205
|
+
if ($n(exprs).isEmpty__Z()) {
|
|
85206
|
+
return $f_Lio_kaitai_struct_translators_CommonLiterals__doStringLiteral__T__T(this, "")
|
|
85207
|
+
} else {
|
|
85208
|
+
var this$2 = $n($as_sc_IterableOnceOps($n(exprs).map__F1__O(new $c_sjsr_AnonFunction1(((value$2) => {
|
|
85209
|
+
var value = $as_Lio_kaitai_struct_exprlang_Ast$expr(value$2);
|
|
85210
|
+
return this.anyToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
85211
|
+
})))));
|
|
85212
|
+
return $f_sc_IterableOnceOps__mkString__T__T__T__T(this$2, "", " & ", "")
|
|
85213
|
+
}
|
|
85214
|
+
});
|
|
85213
85215
|
$c_Lio_kaitai_struct_translators_NimTranslator.prototype.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s, base) {
|
|
85214
85216
|
return this.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(s, base)
|
|
85215
85217
|
});
|
|
@@ -85222,8 +85224,8 @@ $c_Lio_kaitai_struct_translators_NimTranslator.prototype.strReverse__Lio_kaitai_
|
|
|
85222
85224
|
$c_Lio_kaitai_struct_translators_NimTranslator.prototype.strLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
|
|
85223
85225
|
return this.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
|
|
85224
85226
|
});
|
|
85225
|
-
$c_Lio_kaitai_struct_translators_NimTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
85226
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
85227
|
+
$c_Lio_kaitai_struct_translators_NimTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
85228
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
85227
85229
|
});
|
|
85228
85230
|
$c_Lio_kaitai_struct_translators_NimTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
85229
85231
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
@@ -85452,31 +85454,8 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.boolToInt__Lio_kaitai_
|
|
|
85452
85454
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
85453
85455
|
return (("int(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ")")
|
|
85454
85456
|
});
|
|
85455
|
-
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
85456
|
-
|
|
85457
|
-
switch (baseStr) {
|
|
85458
|
-
case "2": {
|
|
85459
|
-
var format = "%b";
|
|
85460
|
-
break
|
|
85461
|
-
}
|
|
85462
|
-
case "8": {
|
|
85463
|
-
var format = "%o";
|
|
85464
|
-
break
|
|
85465
|
-
}
|
|
85466
|
-
case "10": {
|
|
85467
|
-
var format = "%d";
|
|
85468
|
-
break
|
|
85469
|
-
}
|
|
85470
|
-
case "16": {
|
|
85471
|
-
var format = "0x%X";
|
|
85472
|
-
break
|
|
85473
|
-
}
|
|
85474
|
-
default: {
|
|
85475
|
-
var format;
|
|
85476
|
-
throw $ct_jl_UnsupportedOperationException__T__(new $c_jl_UnsupportedOperationException(), baseStr)
|
|
85477
|
-
}
|
|
85478
|
-
};
|
|
85479
|
-
return (((("sprintf('" + format) + "', ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
|
|
85457
|
+
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i) {
|
|
85458
|
+
return (("sprintf('%d', " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
|
|
85480
85459
|
});
|
|
85481
85460
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
|
|
85482
85461
|
var this$1 = $n(this.Lio_kaitai_struct_translators_PerlTranslator__f_importList);
|
|
@@ -85593,8 +85572,8 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesSubscript__Lio_ka
|
|
|
85593
85572
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
85594
85573
|
return this.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
85595
85574
|
});
|
|
85596
|
-
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
85597
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
85575
|
+
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
85576
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
85598
85577
|
});
|
|
85599
85578
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
85600
85579
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
@@ -85753,31 +85732,8 @@ $c_Lio_kaitai_struct_translators_PythonTranslator.prototype.boolToInt__Lio_kaita
|
|
|
85753
85732
|
$c_Lio_kaitai_struct_translators_PythonTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
85754
85733
|
return (("int(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ")")
|
|
85755
85734
|
});
|
|
85756
|
-
$c_Lio_kaitai_struct_translators_PythonTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
85757
|
-
|
|
85758
|
-
switch (baseStr) {
|
|
85759
|
-
case "2": {
|
|
85760
|
-
var func = "bin";
|
|
85761
|
-
break
|
|
85762
|
-
}
|
|
85763
|
-
case "8": {
|
|
85764
|
-
var func = "oct";
|
|
85765
|
-
break
|
|
85766
|
-
}
|
|
85767
|
-
case "10": {
|
|
85768
|
-
var func = "str";
|
|
85769
|
-
break
|
|
85770
|
-
}
|
|
85771
|
-
case "16": {
|
|
85772
|
-
var func = "hex";
|
|
85773
|
-
break
|
|
85774
|
-
}
|
|
85775
|
-
default: {
|
|
85776
|
-
var func;
|
|
85777
|
-
throw $ct_jl_UnsupportedOperationException__T__(new $c_jl_UnsupportedOperationException(), baseStr)
|
|
85778
|
-
}
|
|
85779
|
-
};
|
|
85780
|
-
return (((func + "(") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
|
|
85735
|
+
$c_Lio_kaitai_struct_translators_PythonTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i) {
|
|
85736
|
+
return (("str(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
|
|
85781
85737
|
});
|
|
85782
85738
|
$c_Lio_kaitai_struct_translators_PythonTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
|
|
85783
85739
|
return (((("(" + bytesExpr) + ").decode(\"") + encoding) + "\")")
|
|
@@ -85886,8 +85842,8 @@ $c_Lio_kaitai_struct_translators_PythonTranslator.prototype.bytesSubscript__Lio_
|
|
|
85886
85842
|
$c_Lio_kaitai_struct_translators_PythonTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
85887
85843
|
return this.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
85888
85844
|
});
|
|
85889
|
-
$c_Lio_kaitai_struct_translators_PythonTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
85890
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
85845
|
+
$c_Lio_kaitai_struct_translators_PythonTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
85846
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
85891
85847
|
});
|
|
85892
85848
|
$c_Lio_kaitai_struct_translators_PythonTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
85893
85849
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
@@ -86040,8 +85996,8 @@ $c_Lio_kaitai_struct_translators_RubyTranslator.prototype.enumToInt__Lio_kaitai_
|
|
|
86040
85996
|
$c_Lio_kaitai_struct_translators_RubyTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
86041
85997
|
return (("(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ").to_i")
|
|
86042
85998
|
});
|
|
86043
|
-
$c_Lio_kaitai_struct_translators_RubyTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
86044
|
-
return (
|
|
85999
|
+
$c_Lio_kaitai_struct_translators_RubyTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i) {
|
|
86000
|
+
return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i) + ".to_s")
|
|
86045
86001
|
});
|
|
86046
86002
|
$c_Lio_kaitai_struct_translators_RubyTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
|
|
86047
86003
|
return ((((("(" + bytesExpr) + ").force_encoding(\"") + encoding) + "\")") + ((encoding !== "UTF-8") ? ".encode('UTF-8')" : ""))
|
|
@@ -86136,8 +86092,8 @@ $c_Lio_kaitai_struct_translators_RubyTranslator.prototype.bytesSubscript__Lio_ka
|
|
|
86136
86092
|
$c_Lio_kaitai_struct_translators_RubyTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
86137
86093
|
return this.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
86138
86094
|
});
|
|
86139
|
-
$c_Lio_kaitai_struct_translators_RubyTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
86140
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
86095
|
+
$c_Lio_kaitai_struct_translators_RubyTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
86096
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
86141
86097
|
});
|
|
86142
86098
|
$c_Lio_kaitai_struct_translators_RubyTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
86143
86099
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
@@ -86279,9 +86235,8 @@ $c_Lio_kaitai_struct_translators_RustTranslator.prototype.boolToInt__Lio_kaitai_
|
|
|
86279
86235
|
$c_Lio_kaitai_struct_translators_RustTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
86280
86236
|
return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v) + " as i32")
|
|
86281
86237
|
});
|
|
86282
|
-
$c_Lio_kaitai_struct_translators_RustTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
86283
|
-
|
|
86284
|
-
return ((baseStr === "10") ? (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i) + ".to_string()") : (((("base_convert(strval(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + "), 10, ") + baseStr) + ")"))
|
|
86238
|
+
$c_Lio_kaitai_struct_translators_RustTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i) {
|
|
86239
|
+
return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i) + ".to_string()")
|
|
86285
86240
|
});
|
|
86286
86241
|
$c_Lio_kaitai_struct_translators_RustTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
|
|
86287
86242
|
return ((encoding === "ASCII") ? (("String::from_utf8_lossy(" + bytesExpr) + ")") : (("panic!(\"Unimplemented encoding for bytesToStr: {}\", \"" + encoding) + "\")"))
|
|
@@ -86353,8 +86308,8 @@ $c_Lio_kaitai_struct_translators_RustTranslator.prototype.strLength__Lio_kaitai_
|
|
|
86353
86308
|
$c_Lio_kaitai_struct_translators_RustTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
86354
86309
|
return this.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
86355
86310
|
});
|
|
86356
|
-
$c_Lio_kaitai_struct_translators_RustTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
86357
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
86311
|
+
$c_Lio_kaitai_struct_translators_RustTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
86312
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
86358
86313
|
});
|
|
86359
86314
|
$c_Lio_kaitai_struct_translators_RustTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
86360
86315
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
@@ -87301,13 +87256,8 @@ $c_Lio_kaitai_struct_translators_CppTranslator.prototype.boolToInt__Lio_kaitai_s
|
|
|
87301
87256
|
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
87302
87257
|
return (("static_cast<int>(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ")")
|
|
87303
87258
|
});
|
|
87304
|
-
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
87305
|
-
|
|
87306
|
-
if ((baseStr === "10")) {
|
|
87307
|
-
return (("kaitai::kstream::to_string(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
|
|
87308
|
-
} else {
|
|
87309
|
-
throw $ct_jl_UnsupportedOperationException__T__(new $c_jl_UnsupportedOperationException(), baseStr)
|
|
87310
|
-
}
|
|
87259
|
+
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i) {
|
|
87260
|
+
return (("kaitai::kstream::to_string(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
|
|
87311
87261
|
});
|
|
87312
87262
|
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
|
|
87313
87263
|
return (((("kaitai::kstream::bytes_to_str(" + bytesExpr) + ", \"") + encoding) + "\")")
|
|
@@ -87414,8 +87364,8 @@ $c_Lio_kaitai_struct_translators_CppTranslator.prototype.bytesSubscript__Lio_kai
|
|
|
87414
87364
|
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
87415
87365
|
return this.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
87416
87366
|
});
|
|
87417
|
-
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
87418
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
87367
|
+
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
87368
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
87419
87369
|
});
|
|
87420
87370
|
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
87421
87371
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
@@ -87583,13 +87533,8 @@ $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.boolToInt__Lio_kaitai_s
|
|
|
87583
87533
|
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
87584
87534
|
return (((((("(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + " > 0) and math.floor(") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ") or math.ceil(") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ")")
|
|
87585
87535
|
});
|
|
87586
|
-
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
87587
|
-
|
|
87588
|
-
if ((baseStr === "10")) {
|
|
87589
|
-
return (("tostring(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
|
|
87590
|
-
} else {
|
|
87591
|
-
throw $ct_jl_UnsupportedOperationException__T__(new $c_jl_UnsupportedOperationException(), baseStr)
|
|
87592
|
-
}
|
|
87536
|
+
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i) {
|
|
87537
|
+
return (("tostring(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
|
|
87593
87538
|
});
|
|
87594
87539
|
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
|
|
87595
87540
|
var this$1 = $n(this.Lio_kaitai_struct_translators_LuaTranslator__f_importList);
|
|
@@ -87645,6 +87590,17 @@ $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.arrayMax__Lio_kaitai_st
|
|
|
87645
87590
|
$m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.Lio_kaitai_struct_ImportList__f_list, "local utils = require(\"utils\")");
|
|
87646
87591
|
return (("utils.array_max(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(a)) + ")")
|
|
87647
87592
|
});
|
|
87593
|
+
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.doInterpolatedStringLiteral__sci_Seq__T = (function(exprs) {
|
|
87594
|
+
if ($n(exprs).isEmpty__Z()) {
|
|
87595
|
+
return $f_Lio_kaitai_struct_translators_CommonLiterals__doStringLiteral__T__T(this, "")
|
|
87596
|
+
} else {
|
|
87597
|
+
var this$2 = $n($as_sc_IterableOnceOps($n(exprs).map__F1__O(new $c_sjsr_AnonFunction1(((value$2) => {
|
|
87598
|
+
var value = $as_Lio_kaitai_struct_exprlang_Ast$expr(value$2);
|
|
87599
|
+
return this.anyToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
87600
|
+
})))));
|
|
87601
|
+
return $f_sc_IterableOnceOps__mkString__T__T__T__T(this$2, "", " .. ", "")
|
|
87602
|
+
}
|
|
87603
|
+
});
|
|
87648
87604
|
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.kaitaiStreamSize__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
|
|
87649
87605
|
return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value) + ":size()")
|
|
87650
87606
|
});
|
|
@@ -87739,8 +87695,8 @@ $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.bytesFirst__Lio_kaitai_
|
|
|
87739
87695
|
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.bytesSubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(container, idx) {
|
|
87740
87696
|
return this.bytesSubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(container, idx)
|
|
87741
87697
|
});
|
|
87742
|
-
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
87743
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
87698
|
+
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
87699
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
87744
87700
|
});
|
|
87745
87701
|
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
87746
87702
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
@@ -87912,9 +87868,8 @@ $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.boolToInt__Lio_kaitai_s
|
|
|
87912
87868
|
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
87913
87869
|
return (("intval(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ")")
|
|
87914
87870
|
});
|
|
87915
|
-
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
87916
|
-
|
|
87917
|
-
return ((baseStr === "10") ? (("strval(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")") : (((("base_convert(strval(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + "), 10, ") + baseStr) + ")"))
|
|
87871
|
+
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i) {
|
|
87872
|
+
return (("strval(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
|
|
87918
87873
|
});
|
|
87919
87874
|
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
|
|
87920
87875
|
return (((("\\Kaitai\\Struct\\Stream::bytesToStr(" + bytesExpr) + ", \"") + encoding) + "\")")
|
|
@@ -88028,8 +87983,8 @@ $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.bytesSubscript__Lio_kai
|
|
|
88028
87983
|
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
88029
87984
|
return this.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
88030
87985
|
});
|
|
88031
|
-
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
88032
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
87986
|
+
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
87987
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
88033
87988
|
});
|
|
88034
87989
|
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
88035
87990
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
package/package.json
CHANGED