class Ole::FileIO
- Ole::FileIO
- Reference
- Object
Included Modules
Defined in:
ole.crConstructors
Instance Method Summary
- #byte_order : Ole::ByteOrder
- #byte_order=(byte_order : Ole::ByteOrder)
- #data : Bytes
- #data=(data : Bytes)
- #directories : Array(DirectoryEntry)
- #directories=(directories : Array(DirectoryEntry))
- #errors : Array(String)
- #errors=(errors : Array(String))
- #fat : Array(UInt32)
- #fat=(fat : Array(UInt32))
- #fat_sectors : Array(UInt32)
- #fat_sectors=(fat_sectors : Array(UInt32))
- #filename : String
- #filename=(filename : String)
- #filesize : Int64
- #get_header : Header
- #header : Ole::Header
- #header=(header : Ole::Header)
- #io : IO
- #io=(io : IO)
- #is_valid? : Bool
-
#max_nr_sectors : Int32
returns the maximun number of sectors
- #minifat : Array(UInt32)
- #minifat=(minifat : Array(UInt32))
-
#minifat_sector_size : Int32
returns the mini sector size (@header.mini_sector_size)
- #ministream : Bytes
- #ministream=(ministream : Bytes)
- #mode : String
- #mode=(mode : String)
- #root : DirectoryEntry
- #root=(root : DirectoryEntry)
- #sector_size : Int32
- #set_error(s : String)
- #set_warning(s : String)
- #size : Int64
- #size=(size : Int64)
- #status : Int32
- #status=(status : Int32)
Instance methods inherited from module Ole::Readers
get_sector_offset(index : UInt32) : Int32
get_sector_offset,
get_sector_type(index : UInt32) : String
get_sector_type,
get_stream(name : String) : Tuple(Bool, DirectoryEntry, Bytes)
get_stream,
read_directories(sector : UInt32)
read_directories,
read_fat
read_fat,
read_fat_sector(sector : UInt32)
read_fat_sector,
read_minifat(bytes : Bytes) : Array(UInt32)
read_minifat,
read_minifat_chain(sector : UInt32)
read_minifat_chain,
read_minifat_stream(sector : UInt32)
read_minifat_stream,
read_ministream(bytes : Bytes) : Bytes
read_ministream,
read_sector(index : UInt32) : Bytes
read_sector,
read_stream(d : DirectoryEntry) : Bytes
read_stream
Instance methods inherited from module Ole::Directory
directory_entries(data : Bytes) : Array(Ole::DirectoryEntry)
directory_entries,
get_root_entry : Ole::DirectoryEntry
get_root_entry,
set_root
set_root
Instance methods inherited from module Ole::Dump
dump_difat
dump_difat,
dump_directories
dump_directories,
dump_fat
dump_fat,
dump_file
dump_file,
dump_header
dump_header,
dump_hex
dump_hex,
dump_minifat
dump_minifat,
dump_ministreams
dump_ministreams,
dump_sector(sector : UInt32)
dump_sector,
dump_stream(name : String)
dump_stream,
print_difat_header
print_difat_header,
print_directories
print_directories,
print_dump_file
print_dump_file,
print_fat_header
print_fat_header,
print_header
print_header,
print_hex_dump
print_hex_dump,
print_minifat_header
print_minifat_header,
print_ministreams
print_ministreams,
print_offset(i : Int32) : String
print_offset
Constructor Detail
Instance Method Detail
def max_nr_sectors : Int32
#
returns the maximun number of sectors
Note: -1 because header doesn't count