Class: Fox::FXFileStream
- Defined in:
- rdoc-sources/FXFileStream.rb,
lib/fox16/iterators.rb
Overview
File Store Definition
Instance Attribute Summary collapse
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Attributes inherited from FXStream
#container, #direction, #space, #status
Instance Method Summary collapse
-
#initialize(cont = nil) ⇒ FXFileStream
constructor
Return an initialized FXFileStream instance.
-
#open(filename, save_or_load, size = 8192) ⇒ Object
Open binary data file stream; allocate a buffer of the given size for the file I/O; the buffer must be at least 16 bytes.
Methods inherited from FXStream
#bigEndian=, #bigEndian?, #bytesSwapped=, #bytesSwapped?, #close, #eof?, #error=, #flush, #getSpace, #setSpace
Constructor Details
#initialize(cont = nil) ⇒ FXFileStream
Return an initialized FXFileStream instance.
10 11 |
# File 'rdoc-sources/FXFileStream.rb', line 10 def initialize(cont=nil) # :yields: theFileStream end |
Instance Attribute Details
#position ⇒ Object (readonly)
Returns the value of attribute position.
5 6 7 |
# File 'rdoc-sources/FXFileStream.rb', line 5 def position @position end |
Instance Method Details
#open(filename, save_or_load, size = 8192) ⇒ Object
Open binary data file stream; allocate a buffer of the given size
for the file I/O; the buffer must be at least 16 bytes. Returns
true on success, false on failure.
Parameters:
filenamename of the file to open [String]
save_or_loadaccess mode, either
FXStreamSaveorFXStreamLoad[Integer]sizebuffer size [Integer]
24 |
# File 'rdoc-sources/FXFileStream.rb', line 24 def open(filename, save_or_load, size=8192); end |