Class: Thermal::Stargraphic::CappedByteBuffer

Inherits:
ByteBuffer
  • Object
show all
Defined in:
lib/thermal/stargraphic/capped_byte_buffer.rb

Instance Method Summary collapse

Methods inherited from ByteBuffer

#<<, #buffer, #flush, #flush_base64, #to_a, #to_base64, #to_s

Constructor Details

#initialize(max_bytes) ⇒ CappedByteBuffer

Returns a new instance of CappedByteBuffer.



6
7
8
9
10
# File 'lib/thermal/stargraphic/capped_byte_buffer.rb', line 6

def initialize(max_bytes)
  super()
  @max_bytes = max_bytes
  @byte_counter = 0
end