Method: AMFStringBuffer#read

Defined in:
lib/flv/amf_string_buffer.rb

#read(length) ⇒ Object

Raises:

  • (EOFError)


36
37
38
39
40
41
# File 'lib/flv/amf_string_buffer.rb', line 36

def read(length)
  raise EOFError if @pos + length > @buffer.length
  rt = @buffer[@pos, length]
  @pos += length
  rt
end