Class: Y::Lib0::Decoding::Decoder

Inherits:
Object
  • Object
show all
Defined in:
lib/y/lib0/decoding.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uint8_array) ⇒ Decoder

Returns a new instance of Decoder.



9
10
11
12
# File 'lib/y/lib0/decoding.rb', line 9

def initialize(uint8_array)
  @arr = uint8_array
  @pos = 0
end

Instance Attribute Details

#arrObject

Returns the value of attribute arr.



7
8
9
# File 'lib/y/lib0/decoding.rb', line 7

def arr
  @arr
end

#posObject

Returns the value of attribute pos.



7
8
9
# File 'lib/y/lib0/decoding.rb', line 7

def pos
  @pos
end