![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
github.com/icza/mpq
Package mpq
is a decoder/parser of Blizzard's MPQ archive file format.
This is not a full MPQ implementation. It is primarily intended to parse StarCraft II replay files (*.SC2Replay
),
but that is fully supported.
Usage is simple. Opening an MPQ archive file:
m, err := mpq.NewFromFile("myreplay.SC2Replay")
if err != nil {
// Handle error
return
}
defer m.Close()
Getting a named file from the archive:
// Access a file inside the MPQ archive.
// Usually there is a file called "(listfile)" containing the list of other files:
if data, err := m.FileByName("(listfile)"); err == nil {
fmt.Println("Files inside archive:")
fmt.Println(string(data))
} else {
// handle error
}
If you already have the MPQ data in memory:
mpqdata := []byte{} // MPQ data in memory
m, err := mpq.New(bytes.NewReader(mpqdata)))
Open-sourced under the Apache License 2.0.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.