class VirtFS::CamcorderFS::File
CamcorderFS::File
class. Instance methods call into CamcorderFS::FS
instance.
Constants
- NS_PFX
Attributes
fs[R]
Public Class Methods
new(fs, instance_handle, parsed_args)
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 11 def initialize(fs, instance_handle, parsed_args) @fs = fs @instance_handle = instance_handle @parsed_args = parsed_args end
Public Instance Methods
atime()
click to toggle source
File
instance methods.
# File lib/virtfs/camcorderfs/file.rb, line 20 def atime fs_call(__method__) end
chmod(permission)
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 24 def chmod(permission) fs_call(__method__, permission) end
chown(owner, group)
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 28 def chown(owner, group) fs_call(__method__, owner, group) end
close()
click to toggle source
IO instance methods.
# File lib/virtfs/camcorderfs/file.rb, line 59 def close fs_call(__method__) end
close_on_exec=(bool_val)
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 67 def close_on_exec=(bool_val) fs_call(__method__, bool_val) end
close_on_exec?()
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 63 def close_on_exec? fs_call(__method__) end
close_read()
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 71 def close_read fs_call(__method__) end
close_write()
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 75 def close_write fs_call(__method__) end
ctime()
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 32 def ctime fs_call(__method__) end
fcntl(cmd, arg)
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 79 def fcntl(cmd, arg) fs_call(__method__, cmd, arg) end
fdatasync()
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 83 def fdatasync fs_call(__method__) end
fileno()
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 87 def fileno fs_call(__method__) end
flock(locking_constant)
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 36 def flock(locking_constant) fs_call(__method__, locking_constant) end
flush()
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 91 def flush fs_call(__method__) end
fsync()
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 95 def fsync fs_call(__method__) end
ioctl(cms, arg)
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 99 def ioctl(cms, arg) fs_call(__method__, cms, arg) end
isatty()
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 103 def isatty fs_call(__method__) end
lstat()
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 40 def lstat fs_call(__method__) end
mtime()
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 44 def mtime fs_call(__method__) end
pid()
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 107 def pid fs_call(__method__) end
raw_read(start_byte, num_bytes)
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 111 def raw_read(start_byte, num_bytes) fs_call(__method__, start_byte, num_bytes) end
raw_write(start_byte, buf)
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 115 def raw_write(start_byte, buf) fs_call(__method__, start_byte, buf) end
read_nonblock(limit, result = "")
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 123 def read_nonblock(limit, result = "") fs_call(__method__, limit, result) end
readpartial(limit, result = "")
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 119 def readpartial(limit, result = "") fs_call(__method__, limit, result) end
size()
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 48 def size fs_call(__method__) end
stat()
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 127 def stat fs_call(__method__) end
sync()
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 131 def sync fs_call(__method__) end
sync=(bool_val)
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 135 def sync=(bool_val) fs_call(__method__, bool_val) end
to_i()
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 139 def to_i fs_call(__method__) end
truncate(to_size)
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 52 def truncate(to_size) fs_call(__method__, to_size) end
tty?()
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 143 def tty? fs_call(__method__) end
write_nonblock(buf)
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 147 def write_nonblock(buf) fs_call(__method__, buf) end
Private Instance Methods
fs_call(method, *args)
click to toggle source
# File lib/virtfs/camcorderfs/file.rb, line 153 def fs_call(method, *args) @fs.send("#{NS_PFX}#{method}", @instance_handle, *args) end