Selector

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

static Selector deserialize (@Nonnull final ByteBuf buf, final int offset)

Method deserialize.

Parameters:
@Nonnull final ByteBuf buf
final int offset

switch

public return switch (typeId)

Method switch.

Parameters:
typeId typeId

computeBytesConsumed

static int computeBytesConsumed (@Nonnull final ByteBuf buf, final int offset)

Method computeBytesConsumed.

Parameters:
@Nonnull final ByteBuf buf
final int offset

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 ByteBuf buf

computeSizeWithTypeId

public int computeSizeWithTypeId ()

Method computeSizeWithTypeId.

validateStructure

static ValidationResult validateStructure (@Nonnull final ByteBuf buffer, final int offset)

Method validateStructure.

Parameters:
@Nonnull final ByteBuf buffer
final int offset