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 Mozilla Public License Version 2.0.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package cc
.squirreljme
.jvm
.pack
.constants
;
13 * Constants for class information.
17 public interface ClassInfoConstants
19 /** Legacy class version from a long time ago. */
20 short CLASS_VERSION_LEGACY
=
23 /** Class version from 2020/11/29. */
24 short CLASS_VERSION_20201129
=
27 /** Magic number for the end of file. */
28 int CLASS_END_MAGIC_NUMBER
=
31 /** The magic number for the header. */
32 int CLASS_MAGIC_NUMBER
=
35 /** The maximum header size. */
36 short CLASS_MAXIMUM_HEADER_SIZE
=
37 8 + (StaticClassProperty
.NUM_STATIC_PROPERTIES
* 4);
39 /** The maximum size of a JAR header. */
40 int JAR_MAXIMUM_HEADER_SIZE
=
41 8 + (JarProperty
.NUM_JAR_PROPERTIES
* 4);
43 /** The maximum size of a Pack header. */
44 int PACK_MAXIMUM_HEADER_SIZE
=
45 8 + (PackProperty
.NUM_PACK_PROPERTIES
* 4);
47 /** Magic number for the JAR. */
48 int JAR_MAGIC_NUMBER
=
51 /** Magic number for the pack file. */
52 int PACK_MAGIC_NUMBER
=