Documentation ¶
Index ¶
Constants ¶
View Source
const ( MASK_SUBDIRECTORY = 1 << 31 RT_ICON = 3 RT_GROUP_ICON = 3 + 11 RT_MANIFEST = 24 )
View Source
const ( DT_PTR = 1 T_UCHAR = 12 )
Variables ¶
View Source
var ( STRING_RSRC = [8]byte{'.', 'r', 's', 'r', 'c', 0, 0, 0} STRING_RDATA = [8]byte{'.', 'r', 'd', 'a', 't', 'a', 0, 0} LANG_ENTRY = DirEntry{NameOrId: 0x0409} //FIXME: language; what value should be here? RELOC_ENTRY = RelocationEntry{ SymbolIndex: 0, Type: 7, } )
Functions ¶
This section is empty.
Types ¶
type Coff ¶
type Coff struct { pe.FileHeader pe.SectionHeader32 *Dir DataEntries []DataEntry Data []Sizer Relocations []RelocationEntry Symbols []Symbol StringsHeader Strings []Sizer }
func (*Coff) AddData ¶
NOTE: only usable for Coff created using NewRDATA NOTE: symbol names must be probably >8 characters long NOTE: symbol names should not contain embedded zeroes
func (*Coff) AddResource ¶
NOTE: function assumes that 'id' is increasing on each entry NOTE: only usable for Coff created using NewRSRC
type DirEntries ¶
type DirEntries []DirEntry
type RelocationEntry ¶
type Sizer ¶
type Sizer interface {
Size() int64 //NOTE: must not exceed limits of uint32, or behavior is undefined
}
type StringsHeader ¶
type StringsHeader struct {
Length uint32
}
Click to show internal directories.
Click to hide internal directories.