Class: Y::Lib0::Encoding::Encoder

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEncoder

Returns a new instance of Encoder.



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

def initialize
  @cpos = 0
  @cbuf = TypedArray.new(100)
  @bufs = []
end

Instance Attribute Details

#bufsObject

Returns the value of attribute bufs.



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

def bufs
  @bufs
end

#cbufObject

Returns the value of attribute cbuf.



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

def cbuf
  @cbuf
end

#cposObject

Returns the value of attribute cpos.



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

def cpos
  @cpos
end