struct BigReader::Header

Overview

Header containa the global header from a given big file. The header will be loaded in the following format:

#signature 4 bytes #file_size 4 bytes (little endian) #item_count 4 bytes (big endian) #index_size 4 bytes (big endian)

Defined in:

big_reader/header.cr

Constructors

Instance Method Summary

Constructor Detail

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

Load the global header from given file The cursor should be at the start of the file

NOTE No validations are done. Please ensure that the file is valid yourself


[View source]

Instance Method Detail

def file_size : UInt32 #

[View source]
def index_size : UInt32 #

[View source]
def item_count : UInt32 #

[View source]
def signature : String #

[View source]