abstract class Selector
Class Selector. Provides selector functionality for the Hytale server.
java.lang.Object > Selector
Field Summary
typeId
final
int
typeId
Field typeId.
typeIdLen
final
int
typeIdLen
Field typeIdLen.
length
final
int
length
Field length.
startPos
final
int
startPos
Field startPos.
Method Detail
deserialize
Method deserialize.
- Parameters:
@Nonnull final ByteBufbuffinal intoffset
switch
public
return
switch
(typeId)
Method switch.
- Parameters:
typeIdtypeId
computeBytesConsumed
static
int
computeBytesConsumed
(@Nonnull final ByteBuf buf, final int offset)
Method computeBytesConsumed.
- Parameters:
@Nonnull final ByteBufbuffinal intoffset
getTypeId
public
int
getTypeId
()
Method getTypeId.
IllegalStateException
public
new
IllegalStateException
("Unknown subtype: " + this.getClass()
Method IllegalStateException.
- Parameters:
"Unknown subtype: " +this.getClass(
serializeWithTypeId
public
int
serializeWithTypeId
(@Nonnull final ByteBuf buf)
Method serializeWithTypeId.
- Parameters:
@Nonnull final ByteBufbuf
computeSizeWithTypeId
public
int
computeSizeWithTypeId
()
Method computeSizeWithTypeId.
validateStructure
Method validateStructure.
- Parameters:
@Nonnull final ByteBufbufferfinal intoffset