firefly-compiler 0.4.5 → 0.4.6

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.
Files changed (78) hide show
  1. package/.hintrc +4 -4
  2. package/README.md +1 -1
  3. package/core/HttpClient.ff +1 -1
  4. package/lsp/LanguageServer.ff +32 -7
  5. package/lsp/stderr.txt +1 -0
  6. package/lsp/stdin.txt +11 -0
  7. package/lsp/stdout.txt +41 -0
  8. package/lux/Main.ff +56 -2
  9. package/meetup/AutoCompletion.ff +6 -0
  10. package/output/js/ff/compiler/Builder.mjs +444 -444
  11. package/output/js/ff/compiler/Compiler.mjs +416 -416
  12. package/output/js/ff/compiler/Dependencies.mjs +389 -389
  13. package/output/js/ff/compiler/Deriver.mjs +1170 -1170
  14. package/output/js/ff/compiler/Dictionaries.mjs +1309 -1309
  15. package/output/js/ff/compiler/Environment.mjs +1015 -1015
  16. package/output/js/ff/compiler/Inference.mjs +4268 -4268
  17. package/output/js/ff/compiler/JsEmitter.mjs +5391 -5391
  18. package/output/js/ff/compiler/JsImporter.mjs +266 -266
  19. package/output/js/ff/compiler/LspHook.mjs +793 -793
  20. package/output/js/ff/compiler/Main.mjs +1675 -1675
  21. package/output/js/ff/compiler/Parser.mjs +4008 -4008
  22. package/output/js/ff/compiler/Patterns.mjs +927 -927
  23. package/output/js/ff/compiler/Resolver.mjs +2307 -2307
  24. package/output/js/ff/compiler/Substitution.mjs +1150 -1150
  25. package/output/js/ff/compiler/Syntax.mjs +12434 -12434
  26. package/output/js/ff/compiler/Token.mjs +3096 -3096
  27. package/output/js/ff/compiler/Tokenizer.mjs +593 -593
  28. package/output/js/ff/compiler/Unification.mjs +1752 -1752
  29. package/output/js/ff/compiler/Wildcards.mjs +608 -608
  30. package/output/js/ff/compiler/Workspace.mjs +687 -687
  31. package/output/js/ff/core/Any.mjs +143 -143
  32. package/output/js/ff/core/Array.mjs +547 -547
  33. package/output/js/ff/core/AssetSystem.mjs +274 -274
  34. package/output/js/ff/core/Atomic.mjs +154 -154
  35. package/output/js/ff/core/Bool.mjs +152 -152
  36. package/output/js/ff/core/Box.mjs +112 -112
  37. package/output/js/ff/core/BrowserSystem.mjs +126 -126
  38. package/output/js/ff/core/Buffer.mjs +395 -395
  39. package/output/js/ff/core/BuildSystem.mjs +296 -296
  40. package/output/js/ff/core/Channel.mjs +189 -189
  41. package/output/js/ff/core/Char.mjs +149 -149
  42. package/output/js/ff/core/Core.mjs +300 -300
  43. package/output/js/ff/core/Duration.mjs +116 -116
  44. package/output/js/ff/core/Equal.mjs +179 -179
  45. package/output/js/ff/core/Error.mjs +142 -142
  46. package/output/js/ff/core/FileHandle.mjs +150 -150
  47. package/output/js/ff/core/Float.mjs +225 -225
  48. package/output/js/ff/core/HttpClient.mjs +190 -190
  49. package/output/js/ff/core/Instant.mjs +109 -109
  50. package/output/js/ff/core/Int.mjs +265 -265
  51. package/output/js/ff/core/IntMap.mjs +280 -280
  52. package/output/js/ff/core/JsSystem.mjs +238 -238
  53. package/output/js/ff/core/JsValue.mjs +708 -708
  54. package/output/js/ff/core/List.mjs +2334 -2334
  55. package/output/js/ff/core/Lock.mjs +229 -229
  56. package/output/js/ff/core/Log.mjs +163 -163
  57. package/output/js/ff/core/Map.mjs +362 -362
  58. package/output/js/ff/core/NodeSystem.mjs +294 -294
  59. package/output/js/ff/core/Nothing.mjs +104 -104
  60. package/output/js/ff/core/Option.mjs +1015 -1015
  61. package/output/js/ff/core/Ordering.mjs +730 -730
  62. package/output/js/ff/core/Pair.mjs +331 -331
  63. package/output/js/ff/core/Path.mjs +545 -545
  64. package/output/js/ff/core/RbMap.mjs +1940 -1940
  65. package/output/js/ff/core/Serializable.mjs +428 -428
  66. package/output/js/ff/core/Set.mjs +254 -254
  67. package/output/js/ff/core/Show.mjs +205 -205
  68. package/output/js/ff/core/SourceLocation.mjs +229 -229
  69. package/output/js/ff/core/Stack.mjs +529 -529
  70. package/output/js/ff/core/Stream.mjs +1304 -1304
  71. package/output/js/ff/core/String.mjs +365 -365
  72. package/output/js/ff/core/StringMap.mjs +280 -280
  73. package/output/js/ff/core/Task.mjs +320 -320
  74. package/output/js/ff/core/Try.mjs +507 -507
  75. package/output/js/ff/core/Unit.mjs +151 -151
  76. package/package.json +29 -29
  77. package/vscode/package-lock.json +5 -5
  78. package/vscode/package.json +1 -1
@@ -1,107 +1,107 @@
1
-
2
-
3
- import * as ff_core_Any from "../../ff/core/Any.mjs"
4
-
5
- import * as ff_core_Array from "../../ff/core/Array.mjs"
6
-
7
- import * as ff_core_AssetSystem from "../../ff/core/AssetSystem.mjs"
8
-
9
- import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
10
-
11
- import * as ff_core_Bool from "../../ff/core/Bool.mjs"
12
-
13
- import * as ff_core_Box from "../../ff/core/Box.mjs"
14
-
15
- import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
16
-
17
- import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
18
-
19
- import * as ff_core_BuildSystem from "../../ff/core/BuildSystem.mjs"
20
-
21
- import * as ff_core_Channel from "../../ff/core/Channel.mjs"
22
-
23
- import * as ff_core_Char from "../../ff/core/Char.mjs"
24
-
25
- import * as ff_core_Core from "../../ff/core/Core.mjs"
26
-
27
- import * as ff_core_Duration from "../../ff/core/Duration.mjs"
28
-
29
- import * as ff_core_Equal from "../../ff/core/Equal.mjs"
30
-
31
- import * as ff_core_Error from "../../ff/core/Error.mjs"
32
-
33
- import * as ff_core_FileHandle from "../../ff/core/FileHandle.mjs"
34
-
35
- import * as ff_core_Float from "../../ff/core/Float.mjs"
36
-
37
- import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
38
-
39
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
40
-
41
- import * as ff_core_Int from "../../ff/core/Int.mjs"
42
-
43
- import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
44
-
45
- import * as ff_core_JsSystem from "../../ff/core/JsSystem.mjs"
46
-
47
- import * as ff_core_JsValue from "../../ff/core/JsValue.mjs"
48
-
49
- import * as ff_core_List from "../../ff/core/List.mjs"
50
-
51
- import * as ff_core_Lock from "../../ff/core/Lock.mjs"
52
-
53
- import * as ff_core_Log from "../../ff/core/Log.mjs"
54
-
55
- import * as ff_core_Map from "../../ff/core/Map.mjs"
56
-
57
- import * as ff_core_NodeSystem from "../../ff/core/NodeSystem.mjs"
58
-
59
- import * as ff_core_Nothing from "../../ff/core/Nothing.mjs"
60
-
61
- import * as ff_core_Option from "../../ff/core/Option.mjs"
62
-
63
- import * as ff_core_Ordering from "../../ff/core/Ordering.mjs"
64
-
65
- import * as ff_core_Pair from "../../ff/core/Pair.mjs"
66
-
67
- import * as ff_core_Path from "../../ff/core/Path.mjs"
68
-
69
- import * as ff_core_Serializable from "../../ff/core/Serializable.mjs"
70
-
71
- import * as ff_core_Set from "../../ff/core/Set.mjs"
72
-
73
- import * as ff_core_Show from "../../ff/core/Show.mjs"
74
-
75
- import * as ff_core_SourceLocation from "../../ff/core/SourceLocation.mjs"
76
-
77
- import * as ff_core_Stack from "../../ff/core/Stack.mjs"
78
-
79
- import * as ff_core_Stream from "../../ff/core/Stream.mjs"
80
-
81
- import * as ff_core_String from "../../ff/core/String.mjs"
82
-
83
- import * as ff_core_StringMap from "../../ff/core/StringMap.mjs"
84
-
85
- import * as ff_core_Task from "../../ff/core/Task.mjs"
86
-
87
- import * as ff_core_Try from "../../ff/core/Try.mjs"
88
-
89
- import * as ff_core_Unit from "../../ff/core/Unit.mjs"
90
-
91
- // type Buffer
92
-
93
-
94
-
95
-
96
- export function make_(size_, shared_ = false) {
97
- return new DataView(shared_ ? new SharedArrayBuffer(size_) : new ArrayBuffer(size_))
98
- }
99
-
100
- export function fromByteArray_(array_) {
101
- return new DataView(new Uint8Array(array_).buffer)
102
- }
103
-
104
- export function fromBufferArray_(array_) {
1
+
2
+
3
+ import * as ff_core_Any from "../../ff/core/Any.mjs"
4
+
5
+ import * as ff_core_Array from "../../ff/core/Array.mjs"
6
+
7
+ import * as ff_core_AssetSystem from "../../ff/core/AssetSystem.mjs"
8
+
9
+ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
10
+
11
+ import * as ff_core_Bool from "../../ff/core/Bool.mjs"
12
+
13
+ import * as ff_core_Box from "../../ff/core/Box.mjs"
14
+
15
+ import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
16
+
17
+ import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
18
+
19
+ import * as ff_core_BuildSystem from "../../ff/core/BuildSystem.mjs"
20
+
21
+ import * as ff_core_Channel from "../../ff/core/Channel.mjs"
22
+
23
+ import * as ff_core_Char from "../../ff/core/Char.mjs"
24
+
25
+ import * as ff_core_Core from "../../ff/core/Core.mjs"
26
+
27
+ import * as ff_core_Duration from "../../ff/core/Duration.mjs"
28
+
29
+ import * as ff_core_Equal from "../../ff/core/Equal.mjs"
30
+
31
+ import * as ff_core_Error from "../../ff/core/Error.mjs"
32
+
33
+ import * as ff_core_FileHandle from "../../ff/core/FileHandle.mjs"
34
+
35
+ import * as ff_core_Float from "../../ff/core/Float.mjs"
36
+
37
+ import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
38
+
39
+ import * as ff_core_Instant from "../../ff/core/Instant.mjs"
40
+
41
+ import * as ff_core_Int from "../../ff/core/Int.mjs"
42
+
43
+ import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
44
+
45
+ import * as ff_core_JsSystem from "../../ff/core/JsSystem.mjs"
46
+
47
+ import * as ff_core_JsValue from "../../ff/core/JsValue.mjs"
48
+
49
+ import * as ff_core_List from "../../ff/core/List.mjs"
50
+
51
+ import * as ff_core_Lock from "../../ff/core/Lock.mjs"
52
+
53
+ import * as ff_core_Log from "../../ff/core/Log.mjs"
54
+
55
+ import * as ff_core_Map from "../../ff/core/Map.mjs"
56
+
57
+ import * as ff_core_NodeSystem from "../../ff/core/NodeSystem.mjs"
58
+
59
+ import * as ff_core_Nothing from "../../ff/core/Nothing.mjs"
60
+
61
+ import * as ff_core_Option from "../../ff/core/Option.mjs"
62
+
63
+ import * as ff_core_Ordering from "../../ff/core/Ordering.mjs"
64
+
65
+ import * as ff_core_Pair from "../../ff/core/Pair.mjs"
66
+
67
+ import * as ff_core_Path from "../../ff/core/Path.mjs"
68
+
69
+ import * as ff_core_Serializable from "../../ff/core/Serializable.mjs"
70
+
71
+ import * as ff_core_Set from "../../ff/core/Set.mjs"
72
+
73
+ import * as ff_core_Show from "../../ff/core/Show.mjs"
74
+
75
+ import * as ff_core_SourceLocation from "../../ff/core/SourceLocation.mjs"
76
+
77
+ import * as ff_core_Stack from "../../ff/core/Stack.mjs"
78
+
79
+ import * as ff_core_Stream from "../../ff/core/Stream.mjs"
80
+
81
+ import * as ff_core_String from "../../ff/core/String.mjs"
82
+
83
+ import * as ff_core_StringMap from "../../ff/core/StringMap.mjs"
84
+
85
+ import * as ff_core_Task from "../../ff/core/Task.mjs"
86
+
87
+ import * as ff_core_Try from "../../ff/core/Try.mjs"
88
+
89
+ import * as ff_core_Unit from "../../ff/core/Unit.mjs"
90
+
91
+ // type Buffer
92
+
93
+
94
+
95
+
96
+ export function make_(size_, shared_ = false) {
97
+ return new DataView(shared_ ? new SharedArrayBuffer(size_) : new ArrayBuffer(size_))
98
+ }
99
+
100
+ export function fromByteArray_(array_) {
101
+ return new DataView(new Uint8Array(array_).buffer)
102
+ }
103
+
104
+ export function fromBufferArray_(array_) {
105
105
 
106
106
  let length = 0
107
107
  for(let b of array_) length += b.byteLength
@@ -113,326 +113,326 @@ export function fromBufferArray_(array_) {
113
113
  offset += b.byteLength
114
114
  }
115
115
  return new DataView(arrayBuffer)
116
-
117
- }
118
-
119
- export function fromHex_(hex_) {
116
+
117
+ }
118
+
119
+ export function fromHex_(hex_) {
120
120
 
121
121
  const hexValues = hexString.match(/.{1,2}/g) || []
122
122
  const numbers = hexValues.map(value => parseInt(value, 16))
123
123
  return new DataView(new Uint8Array(numbers).buffer)
124
-
125
- }
126
-
127
- export function fromBase64_(base64_) {
124
+
125
+ }
126
+
127
+ export function fromBase64_(base64_) {
128
128
 
129
129
  const binaryString = atob(base64_)
130
130
  const dataView = new DataView(new ArrayBuffer(binaryString.length))
131
131
  dataView.setUint8(binaryString.split('').map(char => char.charCodeAt(0)))
132
132
  return dataView
133
-
134
- }
135
-
136
- export async function make_$(size_, shared_ = false, $task) {
137
- throw new Error('Function make is missing on this target in async context.');
138
- }
139
-
140
- export async function fromByteArray_$(array_, $task) {
141
- throw new Error('Function fromByteArray is missing on this target in async context.');
142
- }
143
-
144
- export async function fromBufferArray_$(array_, $task) {
145
- throw new Error('Function fromBufferArray is missing on this target in async context.');
146
- }
147
-
148
- export async function fromHex_$(hex_, $task) {
149
- throw new Error('Function fromHex is missing on this target in async context.');
150
- }
151
-
152
- export async function fromBase64_$(base64_, $task) {
153
- throw new Error('Function fromBase64 is missing on this target in async context.');
154
- }
155
-
156
- export function Buffer_grabUint64(self_, byteOffset_, littleEndian_ = true) {
133
+
134
+ }
135
+
136
+ export async function make_$(size_, shared_ = false, $task) {
137
+ throw new Error('Function make is missing on this target in async context.');
138
+ }
139
+
140
+ export async function fromByteArray_$(array_, $task) {
141
+ throw new Error('Function fromByteArray is missing on this target in async context.');
142
+ }
143
+
144
+ export async function fromBufferArray_$(array_, $task) {
145
+ throw new Error('Function fromBufferArray is missing on this target in async context.');
146
+ }
147
+
148
+ export async function fromHex_$(hex_, $task) {
149
+ throw new Error('Function fromHex is missing on this target in async context.');
150
+ }
151
+
152
+ export async function fromBase64_$(base64_, $task) {
153
+ throw new Error('Function fromBase64 is missing on this target in async context.');
154
+ }
155
+
156
+ export function Buffer_grabUint64(self_, byteOffset_, littleEndian_ = true) {
157
157
 
158
158
  const high = self_.getUint32(byteOffset_ + (littleEndian_ ? 4 : 0), littleEndian_)
159
159
  const low = self_.getUint32(byteOffset_ + (littleEndian_ ? 0 : 4), littleEndian_)
160
160
  const result = (high * 0x100000000) + low
161
161
  if(!Number.isSafeInteger(result)) throw 'grabUint64 out of range (consider grabBigUint64)'
162
162
  return result
163
-
164
- }
165
-
166
- export function Buffer_grabInt64(self_, byteOffset_, littleEndian_ = true) {
163
+
164
+ }
165
+
166
+ export function Buffer_grabInt64(self_, byteOffset_, littleEndian_ = true) {
167
167
 
168
168
  const high = self_.getInt32(byteOffset_ + (littleEndian_ ? 4 : 0), littleEndian_)
169
169
  const low = self_.getUint32(byteOffset_ + (littleEndian_ ? 0 : 4), littleEndian_)
170
170
  const result = (high * 0x100000000) + low
171
171
  if(!Number.isSafeInteger(result)) throw 'grabInt64 out of range (consider grabBigInt64)'
172
172
  return result
173
-
174
- }
175
-
176
- export function Buffer_grabFloat32(self_, byteOffset_, littleEndian_ = true) {
177
- return self_.getFloat32(byteOffset_, littleEndian_)
178
- }
179
-
180
- export function Buffer_grabFloat64(self_, byteOffset_, littleEndian_ = true) {
181
- return self_.getFloat64(byteOffset_, littleEndian_)
182
- }
183
-
184
- export function Buffer_grabInt16(self_, byteOffset_, littleEndian_ = true) {
185
- return self_.getInt16(byteOffset_, littleEndian_)
186
- }
187
-
188
- export function Buffer_grabInt32(self_, byteOffset_, littleEndian_ = true) {
189
- return self_.getInt32(byteOffset_, littleEndian_)
190
- }
191
-
192
- export function Buffer_grabInt8(self_, byteOffset_) {
193
- return self_.getInt8(byteOffset_)
194
- }
195
-
196
- export function Buffer_grabUint16(self_, byteOffset_, littleEndian_ = true) {
197
- return self_.getUint16(byteOffset_, littleEndian_)
198
- }
199
-
200
- export function Buffer_grabUint32(self_, byteOffset_, littleEndian_ = true) {
201
- return self_.getUint32(byteOffset_, littleEndian_)
202
- }
203
-
204
- export function Buffer_grabUint8(self_, byteOffset_) {
205
- return self_.getUint8(byteOffset_)
206
- }
207
-
208
- export function Buffer_setUint64(self_, byteOffset_, value_, littleEndian_ = true) {
173
+
174
+ }
175
+
176
+ export function Buffer_grabFloat32(self_, byteOffset_, littleEndian_ = true) {
177
+ return self_.getFloat32(byteOffset_, littleEndian_)
178
+ }
179
+
180
+ export function Buffer_grabFloat64(self_, byteOffset_, littleEndian_ = true) {
181
+ return self_.getFloat64(byteOffset_, littleEndian_)
182
+ }
183
+
184
+ export function Buffer_grabInt16(self_, byteOffset_, littleEndian_ = true) {
185
+ return self_.getInt16(byteOffset_, littleEndian_)
186
+ }
187
+
188
+ export function Buffer_grabInt32(self_, byteOffset_, littleEndian_ = true) {
189
+ return self_.getInt32(byteOffset_, littleEndian_)
190
+ }
191
+
192
+ export function Buffer_grabInt8(self_, byteOffset_) {
193
+ return self_.getInt8(byteOffset_)
194
+ }
195
+
196
+ export function Buffer_grabUint16(self_, byteOffset_, littleEndian_ = true) {
197
+ return self_.getUint16(byteOffset_, littleEndian_)
198
+ }
199
+
200
+ export function Buffer_grabUint32(self_, byteOffset_, littleEndian_ = true) {
201
+ return self_.getUint32(byteOffset_, littleEndian_)
202
+ }
203
+
204
+ export function Buffer_grabUint8(self_, byteOffset_) {
205
+ return self_.getUint8(byteOffset_)
206
+ }
207
+
208
+ export function Buffer_setUint64(self_, byteOffset_, value_, littleEndian_ = true) {
209
209
 
210
210
  self_.setUint32(byteOffset_ + (littleEndian_ ? 4 : 0), (value_ >>> 16) >>> 16, littleEndian_)
211
211
  self_.setUint32(byteOffset_ + (littleEndian_ ? 0 : 4), value_ & 0xffffffff, littleEndian_)
212
-
213
- }
214
-
215
- export function Buffer_setInt64(self_, byteOffset_, value_, littleEndian_ = true) {
212
+
213
+ }
214
+
215
+ export function Buffer_setInt64(self_, byteOffset_, value_, littleEndian_ = true) {
216
216
 
217
217
  self_.setUint32(byteOffset_ + (littleEndian_ ? 4 : 0), (value_ >> 16) >> 16, littleEndian_)
218
218
  self_.setUint32(byteOffset_ + (littleEndian_ ? 0 : 4), value_ & 0xffffffff, littleEndian_)
219
-
220
- }
221
-
222
- export function Buffer_setFloat32(self_, byteOffset_, value_, littleEndian_ = true) {
223
- self_.setFloat32(byteOffset_, value_, littleEndian_)
224
- }
225
-
226
- export function Buffer_setFloat64(self_, byteOffset_, value_, littleEndian_ = true) {
227
- self_.setFloat64(byteOffset_, value_, littleEndian_)
228
- }
229
-
230
- export function Buffer_setInt16(self_, byteOffset_, value_, littleEndian_ = true) {
231
- self_.setInt16(byteOffset_, value_, littleEndian_)
232
- }
233
-
234
- export function Buffer_setInt32(self_, byteOffset_, value_, littleEndian_ = true) {
235
- self_.setInt32(byteOffset_, value_, littleEndian_)
236
- }
237
-
238
- export function Buffer_setInt8(self_, byteOffset_, value_) {
239
- self_.setInt8(byteOffset_, value_)
240
- }
241
-
242
- export function Buffer_setUint16(self_, byteOffset_, value_, littleEndian_ = true) {
243
- self_.setUint16(byteOffset_, value_, littleEndian_)
244
- }
245
-
246
- export function Buffer_setUint32(self_, byteOffset_, value_, littleEndian_ = true) {
247
- self_.setUint32(byteOffset_, value_, littleEndian_)
248
- }
249
-
250
- export function Buffer_setUint8(self_, byteOffset_, value_) {
251
- self_.setUint8(byteOffset_, value_)
252
- }
253
-
254
- export function Buffer_setAll(self_, byteOffset_, buffer_) {
219
+
220
+ }
221
+
222
+ export function Buffer_setFloat32(self_, byteOffset_, value_, littleEndian_ = true) {
223
+ self_.setFloat32(byteOffset_, value_, littleEndian_)
224
+ }
225
+
226
+ export function Buffer_setFloat64(self_, byteOffset_, value_, littleEndian_ = true) {
227
+ self_.setFloat64(byteOffset_, value_, littleEndian_)
228
+ }
229
+
230
+ export function Buffer_setInt16(self_, byteOffset_, value_, littleEndian_ = true) {
231
+ self_.setInt16(byteOffset_, value_, littleEndian_)
232
+ }
233
+
234
+ export function Buffer_setInt32(self_, byteOffset_, value_, littleEndian_ = true) {
235
+ self_.setInt32(byteOffset_, value_, littleEndian_)
236
+ }
237
+
238
+ export function Buffer_setInt8(self_, byteOffset_, value_) {
239
+ self_.setInt8(byteOffset_, value_)
240
+ }
241
+
242
+ export function Buffer_setUint16(self_, byteOffset_, value_, littleEndian_ = true) {
243
+ self_.setUint16(byteOffset_, value_, littleEndian_)
244
+ }
245
+
246
+ export function Buffer_setUint32(self_, byteOffset_, value_, littleEndian_ = true) {
247
+ self_.setUint32(byteOffset_, value_, littleEndian_)
248
+ }
249
+
250
+ export function Buffer_setUint8(self_, byteOffset_, value_) {
251
+ self_.setUint8(byteOffset_, value_)
252
+ }
253
+
254
+ export function Buffer_setAll(self_, byteOffset_, buffer_) {
255
255
 
256
256
  const sourceBuffer = new Uint8Array(buffer_.buffer, buffer_.byteOffset, buffer_.byteLength)
257
257
  const targetBuffer = new Uint8Array(self_.buffer, self_.byteOffset, self_.byteLength)
258
258
  targetBuffer.set(sourceBuffer, byteOffset_)
259
-
260
- }
261
-
262
- export function Buffer_size(self_) {
263
- return self_.byteLength
264
- }
265
-
266
- export function Buffer_shared(self_) {
267
- return typeof SharedArrayBuffer !== 'undefined' && self_.buffer instanceof SharedArrayBuffer
268
- }
269
-
270
- export function Buffer_view(self_, begin_, end_) {
271
- return new DataView(self_.buffer, self_.byteOffset + begin_, end_ - begin_)
272
- }
273
-
274
- export function Buffer_copy(self_) {
275
- return new DataView(self_.buffer.slice(self_.byteOffset, self_.byteOffset + self_.byteLength))
276
- }
277
-
278
- export function Buffer_toString(self_, encoding_ = "utf8") {
259
+
260
+ }
261
+
262
+ export function Buffer_size(self_) {
263
+ return self_.byteLength
264
+ }
265
+
266
+ export function Buffer_shared(self_) {
267
+ return typeof SharedArrayBuffer !== 'undefined' && self_.buffer instanceof SharedArrayBuffer
268
+ }
269
+
270
+ export function Buffer_view(self_, begin_, end_) {
271
+ return new DataView(self_.buffer, self_.byteOffset + begin_, end_ - begin_)
272
+ }
273
+
274
+ export function Buffer_copy(self_) {
275
+ return new DataView(self_.buffer.slice(self_.byteOffset, self_.byteOffset + self_.byteLength))
276
+ }
277
+
278
+ export function Buffer_toString(self_, encoding_ = "utf8") {
279
279
 
280
280
  if(encoding_ === "utf8") {
281
281
  if(typeof TextDecoder.ffSingleton === 'undefined') TextDecoder.ffSingleton = new TextDecoder()
282
282
  return TextDecoder.ffSingleton.decode(self_)
283
283
  }
284
284
  return new TextDecoder().decode(self_)
285
-
286
- }
287
-
288
- export function Buffer_toByteArray(self_) {
289
- return [...new Uint8Array(self_.buffer, self_.byteOffset, self_.byteLength)]
290
- }
291
-
292
- export function Buffer_toHex(self_) {
285
+
286
+ }
287
+
288
+ export function Buffer_toByteArray(self_) {
289
+ return [...new Uint8Array(self_.buffer, self_.byteOffset, self_.byteLength)]
290
+ }
291
+
292
+ export function Buffer_toHex(self_) {
293
293
 
294
294
  let hex = ''
295
295
  for (let i = 0; i < self_.byteLength; i++) {
296
296
  hex += self_.getUint8(i).toString(16).padStart(2, '0')
297
297
  }
298
298
  return hex
299
-
300
- }
301
-
302
- export function Buffer_toBase64(self_) {
299
+
300
+ }
301
+
302
+ export function Buffer_toBase64(self_) {
303
303
 
304
304
  const view = new Uint8Array(self_.buffer, self_.byteOffset, self_.byteLength);
305
305
  return btoa(String.fromCharCode(...view));
306
-
307
- }
308
-
309
- export async function Buffer_grabUint64$(self_, byteOffset_, littleEndian_ = true, $task) {
310
- throw new Error('Function Buffer_grabUint64 is missing on this target in async context.');
311
- }
312
-
313
- export async function Buffer_grabInt64$(self_, byteOffset_, littleEndian_ = true, $task) {
314
- throw new Error('Function Buffer_grabInt64 is missing on this target in async context.');
315
- }
316
-
317
- export async function Buffer_grabFloat32$(self_, byteOffset_, littleEndian_ = true, $task) {
318
- throw new Error('Function Buffer_grabFloat32 is missing on this target in async context.');
319
- }
320
-
321
- export async function Buffer_grabFloat64$(self_, byteOffset_, littleEndian_ = true, $task) {
322
- throw new Error('Function Buffer_grabFloat64 is missing on this target in async context.');
323
- }
324
-
325
- export async function Buffer_grabInt16$(self_, byteOffset_, littleEndian_ = true, $task) {
326
- throw new Error('Function Buffer_grabInt16 is missing on this target in async context.');
327
- }
328
-
329
- export async function Buffer_grabInt32$(self_, byteOffset_, littleEndian_ = true, $task) {
330
- throw new Error('Function Buffer_grabInt32 is missing on this target in async context.');
331
- }
332
-
333
- export async function Buffer_grabInt8$(self_, byteOffset_, $task) {
334
- throw new Error('Function Buffer_grabInt8 is missing on this target in async context.');
335
- }
336
-
337
- export async function Buffer_grabUint16$(self_, byteOffset_, littleEndian_ = true, $task) {
338
- throw new Error('Function Buffer_grabUint16 is missing on this target in async context.');
339
- }
340
-
341
- export async function Buffer_grabUint32$(self_, byteOffset_, littleEndian_ = true, $task) {
342
- throw new Error('Function Buffer_grabUint32 is missing on this target in async context.');
343
- }
344
-
345
- export async function Buffer_grabUint8$(self_, byteOffset_, $task) {
346
- throw new Error('Function Buffer_grabUint8 is missing on this target in async context.');
347
- }
348
-
349
- export async function Buffer_setUint64$(self_, byteOffset_, value_, littleEndian_ = true, $task) {
350
- throw new Error('Function Buffer_setUint64 is missing on this target in async context.');
351
- }
352
-
353
- export async function Buffer_setInt64$(self_, byteOffset_, value_, littleEndian_ = true, $task) {
354
- throw new Error('Function Buffer_setInt64 is missing on this target in async context.');
355
- }
356
-
357
- export async function Buffer_setFloat32$(self_, byteOffset_, value_, littleEndian_ = true, $task) {
358
- throw new Error('Function Buffer_setFloat32 is missing on this target in async context.');
359
- }
360
-
361
- export async function Buffer_setFloat64$(self_, byteOffset_, value_, littleEndian_ = true, $task) {
362
- throw new Error('Function Buffer_setFloat64 is missing on this target in async context.');
363
- }
364
-
365
- export async function Buffer_setInt16$(self_, byteOffset_, value_, littleEndian_ = true, $task) {
366
- throw new Error('Function Buffer_setInt16 is missing on this target in async context.');
367
- }
368
-
369
- export async function Buffer_setInt32$(self_, byteOffset_, value_, littleEndian_ = true, $task) {
370
- throw new Error('Function Buffer_setInt32 is missing on this target in async context.');
371
- }
372
-
373
- export async function Buffer_setInt8$(self_, byteOffset_, value_, $task) {
374
- throw new Error('Function Buffer_setInt8 is missing on this target in async context.');
375
- }
376
-
377
- export async function Buffer_setUint16$(self_, byteOffset_, value_, littleEndian_ = true, $task) {
378
- throw new Error('Function Buffer_setUint16 is missing on this target in async context.');
379
- }
380
-
381
- export async function Buffer_setUint32$(self_, byteOffset_, value_, littleEndian_ = true, $task) {
382
- throw new Error('Function Buffer_setUint32 is missing on this target in async context.');
383
- }
384
-
385
- export async function Buffer_setUint8$(self_, byteOffset_, value_, $task) {
386
- throw new Error('Function Buffer_setUint8 is missing on this target in async context.');
387
- }
388
-
389
- export async function Buffer_setAll$(self_, byteOffset_, buffer_, $task) {
390
- throw new Error('Function Buffer_setAll is missing on this target in async context.');
391
- }
392
-
393
- export async function Buffer_size$(self_, $task) {
394
- throw new Error('Function Buffer_size is missing on this target in async context.');
395
- }
396
-
397
- export async function Buffer_shared$(self_, $task) {
398
- throw new Error('Function Buffer_shared is missing on this target in async context.');
399
- }
400
-
401
- export async function Buffer_view$(self_, begin_, end_, $task) {
402
- throw new Error('Function Buffer_view is missing on this target in async context.');
403
- }
404
-
405
- export async function Buffer_copy$(self_, $task) {
406
- throw new Error('Function Buffer_copy is missing on this target in async context.');
407
- }
408
-
409
- export async function Buffer_toString$(self_, encoding_ = "utf8", $task) {
410
- throw new Error('Function Buffer_toString is missing on this target in async context.');
411
- }
412
-
413
- export async function Buffer_toByteArray$(self_, $task) {
414
- throw new Error('Function Buffer_toByteArray is missing on this target in async context.');
415
- }
416
-
417
- export async function Buffer_toHex$(self_, $task) {
418
- throw new Error('Function Buffer_toHex is missing on this target in async context.');
419
- }
420
-
421
- export async function Buffer_toBase64$(self_, $task) {
422
- throw new Error('Function Buffer_toBase64 is missing on this target in async context.');
423
- }
424
-
425
- export const ff_core_Show_Show$ff_core_Buffer_Buffer = {
426
- show_(value_) {
427
- return ((`Buffer.fromHex("` + ff_core_Buffer.Buffer_toHex(value_)) + `")`)
428
- },
429
- async show_$(value_, $task) {
430
- return ((`Buffer.fromHex("` + ff_core_Buffer.Buffer_toHex(value_)) + `")`)
431
- }
432
- };
433
-
434
- export const ff_core_Equal_Equal$ff_core_Buffer_Buffer = {
435
- equals_(x_, y_) {
306
+
307
+ }
308
+
309
+ export async function Buffer_grabUint64$(self_, byteOffset_, littleEndian_ = true, $task) {
310
+ throw new Error('Function Buffer_grabUint64 is missing on this target in async context.');
311
+ }
312
+
313
+ export async function Buffer_grabInt64$(self_, byteOffset_, littleEndian_ = true, $task) {
314
+ throw new Error('Function Buffer_grabInt64 is missing on this target in async context.');
315
+ }
316
+
317
+ export async function Buffer_grabFloat32$(self_, byteOffset_, littleEndian_ = true, $task) {
318
+ throw new Error('Function Buffer_grabFloat32 is missing on this target in async context.');
319
+ }
320
+
321
+ export async function Buffer_grabFloat64$(self_, byteOffset_, littleEndian_ = true, $task) {
322
+ throw new Error('Function Buffer_grabFloat64 is missing on this target in async context.');
323
+ }
324
+
325
+ export async function Buffer_grabInt16$(self_, byteOffset_, littleEndian_ = true, $task) {
326
+ throw new Error('Function Buffer_grabInt16 is missing on this target in async context.');
327
+ }
328
+
329
+ export async function Buffer_grabInt32$(self_, byteOffset_, littleEndian_ = true, $task) {
330
+ throw new Error('Function Buffer_grabInt32 is missing on this target in async context.');
331
+ }
332
+
333
+ export async function Buffer_grabInt8$(self_, byteOffset_, $task) {
334
+ throw new Error('Function Buffer_grabInt8 is missing on this target in async context.');
335
+ }
336
+
337
+ export async function Buffer_grabUint16$(self_, byteOffset_, littleEndian_ = true, $task) {
338
+ throw new Error('Function Buffer_grabUint16 is missing on this target in async context.');
339
+ }
340
+
341
+ export async function Buffer_grabUint32$(self_, byteOffset_, littleEndian_ = true, $task) {
342
+ throw new Error('Function Buffer_grabUint32 is missing on this target in async context.');
343
+ }
344
+
345
+ export async function Buffer_grabUint8$(self_, byteOffset_, $task) {
346
+ throw new Error('Function Buffer_grabUint8 is missing on this target in async context.');
347
+ }
348
+
349
+ export async function Buffer_setUint64$(self_, byteOffset_, value_, littleEndian_ = true, $task) {
350
+ throw new Error('Function Buffer_setUint64 is missing on this target in async context.');
351
+ }
352
+
353
+ export async function Buffer_setInt64$(self_, byteOffset_, value_, littleEndian_ = true, $task) {
354
+ throw new Error('Function Buffer_setInt64 is missing on this target in async context.');
355
+ }
356
+
357
+ export async function Buffer_setFloat32$(self_, byteOffset_, value_, littleEndian_ = true, $task) {
358
+ throw new Error('Function Buffer_setFloat32 is missing on this target in async context.');
359
+ }
360
+
361
+ export async function Buffer_setFloat64$(self_, byteOffset_, value_, littleEndian_ = true, $task) {
362
+ throw new Error('Function Buffer_setFloat64 is missing on this target in async context.');
363
+ }
364
+
365
+ export async function Buffer_setInt16$(self_, byteOffset_, value_, littleEndian_ = true, $task) {
366
+ throw new Error('Function Buffer_setInt16 is missing on this target in async context.');
367
+ }
368
+
369
+ export async function Buffer_setInt32$(self_, byteOffset_, value_, littleEndian_ = true, $task) {
370
+ throw new Error('Function Buffer_setInt32 is missing on this target in async context.');
371
+ }
372
+
373
+ export async function Buffer_setInt8$(self_, byteOffset_, value_, $task) {
374
+ throw new Error('Function Buffer_setInt8 is missing on this target in async context.');
375
+ }
376
+
377
+ export async function Buffer_setUint16$(self_, byteOffset_, value_, littleEndian_ = true, $task) {
378
+ throw new Error('Function Buffer_setUint16 is missing on this target in async context.');
379
+ }
380
+
381
+ export async function Buffer_setUint32$(self_, byteOffset_, value_, littleEndian_ = true, $task) {
382
+ throw new Error('Function Buffer_setUint32 is missing on this target in async context.');
383
+ }
384
+
385
+ export async function Buffer_setUint8$(self_, byteOffset_, value_, $task) {
386
+ throw new Error('Function Buffer_setUint8 is missing on this target in async context.');
387
+ }
388
+
389
+ export async function Buffer_setAll$(self_, byteOffset_, buffer_, $task) {
390
+ throw new Error('Function Buffer_setAll is missing on this target in async context.');
391
+ }
392
+
393
+ export async function Buffer_size$(self_, $task) {
394
+ throw new Error('Function Buffer_size is missing on this target in async context.');
395
+ }
396
+
397
+ export async function Buffer_shared$(self_, $task) {
398
+ throw new Error('Function Buffer_shared is missing on this target in async context.');
399
+ }
400
+
401
+ export async function Buffer_view$(self_, begin_, end_, $task) {
402
+ throw new Error('Function Buffer_view is missing on this target in async context.');
403
+ }
404
+
405
+ export async function Buffer_copy$(self_, $task) {
406
+ throw new Error('Function Buffer_copy is missing on this target in async context.');
407
+ }
408
+
409
+ export async function Buffer_toString$(self_, encoding_ = "utf8", $task) {
410
+ throw new Error('Function Buffer_toString is missing on this target in async context.');
411
+ }
412
+
413
+ export async function Buffer_toByteArray$(self_, $task) {
414
+ throw new Error('Function Buffer_toByteArray is missing on this target in async context.');
415
+ }
416
+
417
+ export async function Buffer_toHex$(self_, $task) {
418
+ throw new Error('Function Buffer_toHex is missing on this target in async context.');
419
+ }
420
+
421
+ export async function Buffer_toBase64$(self_, $task) {
422
+ throw new Error('Function Buffer_toBase64 is missing on this target in async context.');
423
+ }
424
+
425
+ export const ff_core_Show_Show$ff_core_Buffer_Buffer = {
426
+ show_(value_) {
427
+ return ((`Buffer.fromHex("` + ff_core_Buffer.Buffer_toHex(value_)) + `")`)
428
+ },
429
+ async show_$(value_, $task) {
430
+ return ((`Buffer.fromHex("` + ff_core_Buffer.Buffer_toHex(value_)) + `")`)
431
+ }
432
+ };
433
+
434
+ export const ff_core_Equal_Equal$ff_core_Buffer_Buffer = {
435
+ equals_(x_, y_) {
436
436
 
437
437
  if(x_.buffer.byteLength !== y_.buffer.byteLength) return false
438
438
  if(x_.buffer === y_.buffer) return true
@@ -443,15 +443,15 @@ equals_(x_, y_) {
443
443
  if(x_.getUint8(i) !== y_.getUint8(i)) return false
444
444
  }
445
445
  return true
446
-
447
- },
448
- async equals_$(x_, y_, $task) {
449
- throw new Error('Function equals is missing on this target in async context.');
450
- }
451
- };
452
-
453
- export const ff_core_Ordering_Order$ff_core_Buffer_Buffer = {
454
- compare_(x_, y_) {
446
+
447
+ },
448
+ async equals_$(x_, y_, $task) {
449
+ throw new Error('Function equals is missing on this target in async context.');
450
+ }
451
+ };
452
+
453
+ export const ff_core_Ordering_Order$ff_core_Buffer_Buffer = {
454
+ compare_(x_, y_) {
455
455
 
456
456
  if(x_.buffer === y_.buffer) return ff_core_Ordering.OrderingSame()
457
457
  const minLength = Math.min(x_.buffer.byteLength, y_.buffer.byteLength)
@@ -461,11 +461,11 @@ compare_(x_, y_) {
461
461
  }
462
462
  }
463
463
  return ff_core_Ordering.fromInt_(x_.buffer.byteLength - y_.buffer.byteLength)
464
-
465
- },
466
- async compare_$(x_, y_, $task) {
467
- throw new Error('Function compare is missing on this target in async context.');
468
- }
469
- };
470
-
471
-
464
+
465
+ },
466
+ async compare_$(x_, y_, $task) {
467
+ throw new Error('Function compare is missing on this target in async context.');
468
+ }
469
+ };
470
+
471
+