brotorift 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/elixir_server_generator.rb +8 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf479b336917f473bae51f67a875541d246fa7f193d144db333729e76aca3d76
|
4
|
+
data.tar.gz: b99223e474693f970851d34114475b0c82d8e54ab9c9b698c8fda826c5dc822e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3dc2c5dce61a8dcc89a850d6edbbd6f1a06f9038a6c83311229868a834603bb71b1c23410d2c7f875aa1c067a9b0defa898ef4c01ff50e08e542d8862e273e3
|
7
|
+
data.tar.gz: 80d0138d84360745b0b7126754fac06c76cd1baada393f9a42d2d0e1b43006a50fb3c99983f31a8022de5f558df83b9b541b7cc7e70ca39e96730de5e6e87ec7
|
@@ -259,11 +259,11 @@ class StructTypeDef
|
|
259
259
|
end
|
260
260
|
|
261
261
|
def elixir_reader node
|
262
|
-
"
|
262
|
+
"&#{node.namespace}.#{@name}.read/1"
|
263
263
|
end
|
264
264
|
|
265
265
|
def elixir_writer node
|
266
|
-
"
|
266
|
+
"&#{node.namespace}.#{@name}.write/2"
|
267
267
|
end
|
268
268
|
end
|
269
269
|
|
@@ -314,11 +314,11 @@ class TypeInstanceDef
|
|
314
314
|
end
|
315
315
|
|
316
316
|
def elixir_list_read node
|
317
|
-
'read_list(data, ' + @params[0].elixir_reader(node) + ')'
|
317
|
+
'Brotorift.Binary.read_list(data, ' + @params[0].elixir_reader(node) + ')'
|
318
318
|
end
|
319
319
|
|
320
320
|
def elixir_list_write node, member_name
|
321
|
-
'write_list(data, ' + member_name + ', ' + @params[0].elixir_writer(node) + ')'
|
321
|
+
'Brotorift.Binary.write_list(data, ' + member_name + ', ' + @params[0].elixir_writer(node) + ')'
|
322
322
|
end
|
323
323
|
|
324
324
|
def elixir_list_reader node
|
@@ -334,11 +334,11 @@ class TypeInstanceDef
|
|
334
334
|
end
|
335
335
|
|
336
336
|
def elixir_set_read node
|
337
|
-
'read_set(data, ' + @params[0].elixir_reader(node) + ')'
|
337
|
+
'Brotorift.Binary.read_set(data, ' + @params[0].elixir_reader(node) + ')'
|
338
338
|
end
|
339
339
|
|
340
340
|
def elixir_set_write node, member_name
|
341
|
-
'write_set(data, ' + member_name + ', ' + @params[0].elixir_writer(node) + ')'
|
341
|
+
'Brotorift.Binary.write_set(data, ' + member_name + ', ' + @params[0].elixir_writer(node) + ')'
|
342
342
|
end
|
343
343
|
|
344
344
|
def elixir_set_reader node
|
@@ -354,11 +354,11 @@ class TypeInstanceDef
|
|
354
354
|
end
|
355
355
|
|
356
356
|
def elixir_map_read node
|
357
|
-
'read_map(data, ' + @params[0].elixir_reader(node) + ', ' + @params[1].elixir_reader(node) + ')'
|
357
|
+
'Brotorift.Binary.read_map(data, ' + @params[0].elixir_reader(node) + ', ' + @params[1].elixir_reader(node) + ')'
|
358
358
|
end
|
359
359
|
|
360
360
|
def elixir_map_write node, member_name
|
361
|
-
'write_map(data, ' + member_name + ', ' + @params[0].elixir_writer(node) + ', ' + @params[1].elixir_writer(node) + ')'
|
361
|
+
'Brotorift.Binary.write_map(data, ' + member_name + ', ' + @params[0].elixir_writer(node) + ', ' + @params[1].elixir_writer(node) + ')'
|
362
362
|
end
|
363
363
|
|
364
364
|
def elixir_map_reader node
|