struct BigReader::IndexedFile

Overview

IndexedFile is the header of a single file within an big archive. The header will be loaded in the followin sequence:

#offset 4 bytes (big endian) #size 4 bytes (big endian) #name utill a NUL byte is found

Defined in:

big_reader/indexed_file.cr

Constructors

Instance Method Summary

Constructor Detail

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

Read the current file header from the given file This expects that the file has already been seeked to the start of the header


[View source]

Instance Method Detail

def name : String #

[View source]
def offset : UInt32 #

[View source]
def path #

Convert windows path to the path used on the current system


[View source]
def size : UInt32 #

[View source]