Documentation ¶
Index ¶
- Constants
- Variables
- func Classes(path string) (int, error)
- func JarClasses(path string) (int, error)
- func JarClassesFrom(paths ...string) (int, int, error)
- func ModuleClasses(file string) (int, error)
- type Header
- type Image
- type Location
- type Locations
- type Offset
- type Offsets
- type Redirect
- type Redirects
- type StringReader
- type Strings
Constants ¶
View Source
const ( HeaderSlots = 7 HeaderSize = 4 )
View Source
const ( AttributeEnd byte = iota AttributeModule AttributeParent AttributeBase AttributeExtension AttributeOffset AttributeCompressed AttributeUncompressed )
View Source
const OffsetSize = 4
View Source
const RedirectSize = 4
Variables ¶
View Source
var ClassExtensions = []string{".class", ".classdata", ".clj", ".groovy", ".kts"}
Functions ¶
func JarClasses ¶ added in v1.20.0
func ModuleClasses ¶ added in v1.20.0
Types ¶
type Header ¶ added in v1.20.0
type Image ¶ added in v1.20.0
type Location ¶ added in v1.20.0
type Location struct { ModuleOffset int32 ParentOffset int32 BaseOffset int32 ExtensionOffset int32 ContentOffset int32 CompressedSize int32 UncompressedSize int32 }
type Locations ¶ added in v1.20.0
type Locations struct { Offset int32 Size int32 Reader io.ReadSeeker }
type Offsets ¶ added in v1.20.0
func NewOffsets ¶ added in v1.20.0
type Redirects ¶ added in v1.20.0
func NewRedirects ¶ added in v1.20.0
type StringReader ¶ added in v1.20.0
Click to show internal directories.
Click to hide internal directories.