class BigReader::File

Overview

A File is the general access point to a .big file This will read all the headers and has the ability to extract an file from it

Defined in:

big_reader/file.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(file : ::File) #

Create a new reader based on the given file This will preload all the headers (global & file) Files can be extracted with the #extract method

big_file = BigReader::File.new(File.open("example.big"))

[View source]

Instance Method Detail

def extract(index : IndexedFile, base_dir = "") #

Extraxts a single file from the big file For reference it needs the index of what to read This will keep the same directory structure as present in the name An optional base_dir this will be used as the start location of extraction

big_file = BigReader::File.new(File.open("example.big"))
big_file.extract(big_file.file_index.first)

[View source]
def file_handle : File #

[View source]
def file_index : Array(BigReader::IndexedFile) #

[View source]
def header : Header #

[View source]