Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getType(MemorySegment)
- getType(MemorySegment, int)
- getTagIndex(MemorySegment)
- getTagIndex(MemorySegment, int)
- getOperands(MemorySegment)
- getOperands(MemorySegment, int)
- getNot(MemorySegment)
- getNot(MemorySegment, int)
- hasOperands(MemorySegment, int)
- hasNot(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class TagPattern
java.lang.Object
com.hypixel.hytale.protocol.TagPattern
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intintstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionTagPattern(TagPattern other) TagPattern(TagPatternType type, int tagIndex, TagPattern[] operands, TagPattern not) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic TagPatterngetNot(MemorySegment mem) static TagPatterngetNot(MemorySegment mem, int offset) static TagPattern[]getOperands(MemorySegment mem) static TagPattern[]getOperands(MemorySegment mem, int offset) static intgetTagIndex(MemorySegment mem) static intgetTagIndex(MemorySegment mem, int offset) static TagPatternTypegetType(MemorySegment mem) static TagPatternTypegetType(MemorySegment mem, int offset) inthashCode()static booleanhasNot(MemorySegment mem, int offset) static booleanhasOperands(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static TagPatterntoObject(MemorySegment mem) static TagPatterntoObject(MemorySegment mem, int offset) static TagPatterntoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one TagPattern and reports the end of its encoding through the cursor.
-
Field Details
-
NULLABLE_BIT_FIELD_SIZE
public static final int NULLABLE_BIT_FIELD_SIZE- See Also:
-
FIXED_BLOCK_SIZE
public static final int FIXED_BLOCK_SIZE- See Also:
-
VARIABLE_FIELD_COUNT
public static final int VARIABLE_FIELD_COUNT- See Also:
-
VARIABLE_BLOCK_START
public static final int VARIABLE_BLOCK_START- See Also:
-
MAX_SIZE
public static final int MAX_SIZE- See Also:
-
type
-
tagIndex
public int tagIndex -
operands
-
not
-
-
Constructor Details
-
TagPattern
public TagPattern() -
TagPattern
public TagPattern(@Nonnull TagPatternType type, int tagIndex, @Nullable TagPattern[] operands, @Nullable TagPattern not) -
TagPattern
-
-
Method Details
-
requireBounds
Checks that the fixed block fits. The per-field getters read without their own bound check, so call this once before reading fields out of an untrusted segment. -
getType
-
getType
-
getTagIndex
-
getTagIndex
-
getOperands
-
getOperands
-
getNot
-
getNot
-
hasOperands
-
hasNot
-
toObject
-
toObject
-
toObject
Decodes one TagPattern and reports the end of its encoding through the cursor. A value of this type may hold further values of it, and decoding such a chain recurses once per link. The cursor counts the links so the chain cannot outrun the stack. -
serialize
-
computeSize
public int computeSize() -
clone
-
equals
-
hashCode
-