1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // Multi-Phasic Applications: SquirrelJME
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package cc
.squirreljme
.jvm
.pack
.constants
;
12 import cc
.squirreljme
.runtime
.cldc
.annotation
.Exported
;
15 * Constants for class information.
20 public interface ClassInfoConstants
22 /** Legacy class version from a long time ago. */
23 short CLASS_VERSION_LEGACY
=
26 /** Class version from 2020/11/29. */
27 short CLASS_VERSION_20201129
=
30 /** Magic number for the end of file. */
31 int CLASS_END_MAGIC_NUMBER
=
34 /** The magic number for the header. */
35 int CLASS_MAGIC_NUMBER
=
38 /** The maximum header size. */
39 short CLASS_MAXIMUM_HEADER_SIZE
=
40 8 + (StaticClassProperty
.NUM_STATIC_PROPERTIES
* 4);
42 /** The maximum size of a JAR header. */
43 int JAR_MAXIMUM_HEADER_SIZE
=
44 8 + (JarProperty
.NUM_JAR_PROPERTIES
* 4);
46 /** The maximum size of a Pack header. */
47 int PACK_MAXIMUM_HEADER_SIZE
=
48 8 + (PackProperty
.NUM_PACK_PROPERTIES
* 4);
50 /** Magic number for the JAR. */
52 int JAR_MAGIC_NUMBER
=
55 /** Magic number for the pack file. */
57 int PACK_MAGIC_NUMBER
=