Initial commit: noxis JVM bytecode obfuscator
Workspace of 9 crates (noxis, noxis-core, noxis-classfile, noxis-analysis, noxis-passes, noxis-runtime, noxis-jar, noxis-verify, noxis-structure-check). AGPL-3.0-only license, Rust 2024 edition, unsafe_code denied.
This commit is contained in:
commit
a641e69455
140 changed files with 17197 additions and 0 deletions
26
crates/noxis-classfile/src/model/version.rs
Normal file
26
crates/noxis-classfile/src/model/version.rs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
//! Версия классового файла (major/minor).
|
||||
|
||||
/// Версия классового файла.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub struct Version {
|
||||
pub minor: u16,
|
||||
pub major: u16,
|
||||
}
|
||||
|
||||
impl Version {
|
||||
/// Java 8 (52).
|
||||
pub const JAVA_8: Version = Version {
|
||||
minor: 0,
|
||||
major: 52,
|
||||
};
|
||||
/// Java 17 (61).
|
||||
pub const JAVA_17: Version = Version {
|
||||
minor: 0,
|
||||
major: 61,
|
||||
};
|
||||
/// Java 21 (65).
|
||||
pub const JAVA_21: Version = Version {
|
||||
minor: 0,
|
||||
major: 65,
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue