struct

Bakelite::Container::Trailer

Inherits Struct < Value < Object

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

Constructors

new(volume_start_offset : UInt64, index_offset : UInt64, index_size : UInt64, version : UInt16 = FORMAT_VERSION, magic : String = MAGIC_TRAILER)
Source

Class methods

read(io : IO) : Trailer | Nil

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

Source

Instance methods

index_offset
Source
index_size
Source
magic
Source
version
Source
volume_start_offset
Source
write(io : IO) : Nil

Serializes the 32-byte trailer to an IO stream.

Source