Marking of more classes, might get rid of in the future and optimize; Implement shrin...
[SquirrelJME.git] / modules / cldc-compact / src / main / java / cc / squirreljme / jvm / pack / constants / ClassInfoConstants.java
blobadac75599e629cb0eadb48453c31b713e18366be
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;
14 /**
15 * Constants for class information.
17 * @since 2020/11/29
19 @Exported
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 =
32 0x42796521;
34 /** The magic number for the header. */
35 int CLASS_MAGIC_NUMBER =
36 0x00586572;
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. */
51 @Exported
52 int JAR_MAGIC_NUMBER =
53 0x00456570;
55 /** Magic number for the pack file. */
56 @Exported
57 int PACK_MAGIC_NUMBER =
58 0x58455223;