class Ole::FileIO

Included Modules

Defined in:

ole.cr

Constructors

Instance Method Summary

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

def self.new(filename : String, mode : String) #

[View source]

Instance Method Detail

def byte_order : Ole::ByteOrder #

[View source]
def byte_order=(byte_order : Ole::ByteOrder) #

[View source]
def data : Bytes #

[View source]
def data=(data : Bytes) #

[View source]
def directories : Array(DirectoryEntry) #

[View source]
def directories=(directories : Array(DirectoryEntry)) #

[View source]
def errors : Array(String) #

[View source]
def errors=(errors : Array(String)) #

[View source]
def fat : Array(UInt32) #

[View source]
def fat=(fat : Array(UInt32)) #

[View source]
def fat_sectors : Array(UInt32) #

[View source]
def fat_sectors=(fat_sectors : Array(UInt32)) #

[View source]
def filename : String #

[View source]
def filename=(filename : String) #

[View source]
def filesize : Int64 #

[View source]
def get_header : Header #

[View source]
def header : Ole::Header #

[View source]
def header=(header : Ole::Header) #

[View source]
def io : IO #

[View source]
def io=(io : IO) #

[View source]
def is_valid? : Bool #

[View source]
def max_nr_sectors : Int32 #

returns the maximun number of sectors

Note: -1 because header doesn't count


[View source]
def minifat : Array(UInt32) #

[View source]
def minifat=(minifat : Array(UInt32)) #

[View source]
def minifat_sector_size : Int32 #

returns the mini sector size (@header.mini_sector_size)


[View source]
def ministream : Bytes #

[View source]
def ministream=(ministream : Bytes) #

[View source]
def mode : String #

[View source]
def mode=(mode : String) #

[View source]
def root : DirectoryEntry #

[View source]
def root=(root : DirectoryEntry) #

[View source]
def sector_size : Int32 #

[View source]
def set_error(s : String) #

[View source]
def set_warning(s : String) #

[View source]
def size : Int64 #

[View source]
def size=(size : Int64) #

[View source]
def status : Int32 #

[View source]
def status=(status : Int32) #

[View source]