Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SpecialSlot ¶
type SpecialSlotHashWriter ¶
type SpecialSlotHashWriter struct {
// contains filtered or unexported fields
}
SpecialSlotHashWriter writes the special slots in the right order and with the right content. Special slots have a type defined in quill/macho/blob_index.go, their hashes must be written from higher type to lower type. All slot types between CsSlotInfoslot (1) and the higher valued type must be written to the file. The hashes for the missing slots must be filled with 0s.
newCodeDirectory() also needs to know how many slots are present (including the 0-filled ones), and the total number of bytes which were written (to maintain an offset). It can use maxSlotType and totalBytesWritten for this.
Click to show internal directories.
Click to hide internal directories.