Class: Erlang::ETF::NewReference
- Inherits:
-
Object
- Object
- Erlang::ETF::NewReference
- Includes:
- Term
- Defined in:
- lib/erlang/etf/new_reference.rb
Overview
1 | 2 | N | 1 | N' |
---|---|---|---|---|
114 | Len | Node | Creation | ID ... |
Node
and Creation
are as in REFERENCE_EXT
.
ID
contains a sequence of big-endian unsigned integers (4 bytes
each, so N'
is a multiple of 4), but should be regarded as
uninterpreted data.
N' = 4 * Len.
In the first word (four bytes) of ID
, only 18 bits are
significant, the rest should be 0. In Creation
, only 2 bits are
significant, the rest should be 0.
NEW_REFERENCE_EXT
was introduced with distribution version 4. In
version 4, N'
should be at most 12.
See REFERENCE_EXT
).
(see NEW_REFERENCE_EXT
)
Constant Summary
Constants included from Term
Term::BERT_PREFIX, Term::BIN_LSB_PACK, Term::BIN_MSB_PACK
Instance Method Summary collapse
-
#initialize(node, creation, ids = []) ⇒ NewReference
constructor
A new instance of NewReference.
Methods included from Term
#==, #__erlang_evolve__, #__erlang_type__, #__ruby_evolve__, included
Constructor Details
#initialize(node, creation, ids = []) ⇒ NewReference
Returns a new instance of NewReference.
57 58 59 60 61 |
# File 'lib/erlang/etf/new_reference.rb', line 57 def initialize(node, creation, ids = []) @node = node @creation = creation @ids = ids end |