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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ac7dca0c9c223b7d06bb2268a6577d8836d6415c31289d59993a625473b8b97
4
- data.tar.gz: 7ee259dddd9d1ce5fe53d0145a815c63ce9470b13adfc83567af0def49f0aa66
3
+ metadata.gz: bf479b336917f473bae51f67a875541d246fa7f193d144db333729e76aca3d76
4
+ data.tar.gz: b99223e474693f970851d34114475b0c82d8e54ab9c9b698c8fda826c5dc822e
5
5
  SHA512:
6
- metadata.gz: 744ac49be64863c643deccc6bca0c65c338bf3d48c05aebc022e218620fe20c4be907ee55da6977904ec6e2b2a3245542fc29f0e0abb45982be7b1a670dbe6f1
7
- data.tar.gz: e353ab64f92ef11d27d1e7c7cc93b51c594edfce0c1123421c5ee07dad35c02556c4ebf4b5631ba45e440403f76167bcdac7a75c4a66c454185b9c1087216a61
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
- "#{node.namespace}.#{@name}.read/1"
262
+ "&#{node.namespace}.#{@name}.read/1"
263
263
  end
264
264
 
265
265
  def elixir_writer node
266
- "#{node.namespace}.#{@name}.write/2"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brotorift
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Ren