Class: Fox::FXFileStream

Inherits:
FXStream show all
Defined in:
rdoc-sources/FXFileStream.rb,
lib/fox16/iterators.rb

Overview

File Store Definition

Instance Attribute Summary collapse

Attributes inherited from FXStream

#container, #direction, #space, #status

Instance Method Summary collapse

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:

filename

name of the file to open [String]

save_or_load

access mode, either FXStreamSave or FXStreamLoad [Integer]

size

buffer size [Integer]



24
# File 'rdoc-sources/FXFileStream.rb', line 24

def open(filename, save_or_load, size=8192); end