Method: Fairy::InputLocalFile::SplittedFile#read

Defined in:
lib/fairy/client/input-local-file.rb

#read(length) ⇒ Object



176
177
178
179
180
181
182
183
184
185
# File 'lib/fairy/client/input-local-file.rb', line 176

def read(length)
	if @seek_end - @io.pos + 1 < length
	  length = @seek_end - @io.pos + 1
	end
	if length == 0
	  nil
	else
	  @io.read(length)
	end
end