Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeaderEntry ¶
type HeaderEntry struct { FileName string PackingMethod, OriginalSize, Reserved, TimeStamp, DataSize uint32 }
HeaderEntry is a simple ArmA 3 header entry
type PBO ¶
type PBO struct { Buffer *bytes.Buffer From, To string Files []string Prefix string Version string }
PBO is a callable struct for creating a .pbo-file easily
func (*PBO) Generate ¶
Generate generates the buffer which can be saved with PBO.Save() or PBO.SaveTo()
func (*PBO) GetChecksum ¶
GetChecksum returns a SHA1 checksum for validation purposes Although, the checksum is needed at the end of each .pbo-file if you want to sign it
func (*PBO) WriteHeader ¶
func (pbo *PBO) WriteHeader(header HeaderEntry) error
WriteHeader writes a normal file header to the buffer PBO.Buffer
func (*PBO) WriteProduct ¶
func (pbo *PBO) WriteProduct(product ProductEntry) error
WriteProduct writes an header of struct ProductEntry into the buffer PBO.Buffer
type ProductEntry ¶
type ProductEntry struct {
EntryName, ProductName, ProductVersion string
}
ProductEntry is an entry for custom information purpose
Click to show internal directories.
Click to hide internal directories.