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} LANG_ENTRY = DirEntry{NameOrId: 0x0409} //FIXME: language; what value should be here? )
Functions ¶
This section is empty.
Types ¶
type Coff ¶
type Coff struct { pe.FileHeader pe.SectionHeader32 *Dir DataEntries []DataEntry Data []PaddedData Relocations []RelocationEntry Symbols []Symbol StringsHeader Strings []Sizer }
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 PaddedData ¶ added in v0.10.0
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.