Versions in this module Expand all Collapse all v0 v0.0.1 Nov 21, 2024 Changes in this version + func FindTag(contents []byte, start int64) (offset, length int64, err error) + func SetSuperfluousCertTag(signedData *signedData, tag []byte) ([]byte, error) + type Binary interface + AppendedTag func() (data []byte, ok bool) + Asn1Data func() []byte + CertificateOffset func() int64 + RemoveAppendedTag func() (contents []byte, err error) + SetAppendedTag func(tagContents []byte) (contents []byte, err error) + SetSuperfluousCertTag func(tag []byte) (contents []byte, err error) + func NewBinary(contents []byte) (Binary, error) + type MSIBinary struct + func NewMSIBinary(fileContents []byte) (*MSIBinary, error) + func (bin *MSIBinary) AppendedTag() (data []byte, ok bool) + func (bin *MSIBinary) Asn1Data() []byte + func (bin *MSIBinary) CertificateOffset() int64 + func (bin *MSIBinary) RemoveAppendedTag() (contents []byte, err error) + func (bin *MSIBinary) SetAppendedTag(tagContents []byte) (contents []byte, err error) + func (bin *MSIBinary) SetSuperfluousCertTag(tag []byte) (contents []byte, err error) + type MSIDirEntry struct + Child uint32 + Clsid [16]byte + ColorFlag uint8 + CreateTime uint64 + Left uint32 + ModifyTime uint64 + Name [64]byte + NumNameBytes uint16 + ObjectType uint8 + Right uint32 + StateFlags uint32 + StreamFirstSector uint32 + StreamSize uint64 + type MSIHeader struct + ByteOrder uint16 + Clsid [16]byte + DllVersion uint16 + FirstDifatSector uint32 + FirstDirSector uint32 + FirstMiniFatSector uint32 + Magic [8]byte + MiniSectorShift uint16 + MiniStreamCutoffSize uint32 + MinorVersion uint16 + NumDifatSectors uint32 + NumDirSectors uint32 + NumFatSectors uint32 + NumMiniFatSectors uint32 + Reserved [6]byte + SectorShift uint16 + TransactionSignatureNumber uint32 + type PE32Binary struct + func NewPE32Binary(contents []byte) (*PE32Binary, error) + func (bin *PE32Binary) AppendedTag() (data []byte, ok bool) + func (bin *PE32Binary) Asn1Data() []byte + func (bin *PE32Binary) CertificateOffset() int64 + func (bin *PE32Binary) RemoveAppendedTag() (contents []byte, err error) + func (bin *PE32Binary) SetAppendedTag(tagContents []byte) (contents []byte, err error) + func (bin *PE32Binary) SetSuperfluousCertTag(tag []byte) (contents []byte, err error) + type SectorFormat struct + Ints int + Size offT