Represents the contextual information needed by a load command to serialize itself correctly into a binary string.
@return [Fixnum] the constant alignment value used to pad the
serialized load command
@return [Symbol] the endianness of the serialized load command
@param macho [MachO::MachOFile] the file to contextualize @return [SerializationContext] the
resulting context
# File lib/macho/load_commands.rb, line 318 def self.context_for(macho) new(macho.endianness, macho.alignment) end
@param endianness [Symbol] the endianness of the context @param alignment [Fixnum] the alignment of the context @api private
# File lib/macho/load_commands.rb, line 325 def initialize(endianness, alignment) @endianness = endianness @alignment = alignment end