struct Bakelite::Container::Trailer

Overview

Trailer structure located in the final 32 bytes of the container/executable.

Defined in:

bakelite/container/format.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(volume_start_offset : UInt64, index_offset : UInt64, index_size : UInt64, version : UInt16 = FORMAT_VERSION, magic : String = MAGIC_TRAILER) #

Class Method Detail

def self.read(io : IO) : Trailer | Nil #

Reads and validates the 32-byte trailer from an IO stream.


Instance Method Detail

def index_offset : UInt64 #

def index_size : UInt64 #

def magic : String #

def version : UInt16 #

def volume_start_offset : UInt64 #

def write(io : IO) : Nil #

Serializes the 32-byte trailer to an IO stream.