Discover Packages
github.com/paralin/modlock
source2
resource
package
Version:
v0.1.8
Opens a new window with list of versions in this module.
Published: Oct 23, 2026
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package resource reads and writes the container of a Source 2 compiled
resource, such as a .vxml_c layout or a .vents_c entity lump: a header and
a table of tagged blocks, each holding one part of the resource.
Find returns the contents of the first block tagged tag, and whether there
is one.
ReadBlock reads the contents of the block tagged tag from a resource.
Write encodes blocks as a resource of the given type version, each block on
a 16-byte boundary after the table, as the resource compiler places them.
Block is one tagged part of a resource, such as its DATA block.
Read returns the blocks of a resource in table order. Each block's Data
aliases resource.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.