Class UnsignedIntType
java.lang.Object
com.viaversion.viaversion.api.type.Type<Long>
com.viaversion.viaversion.api.type.types.UnsignedIntType
- All Implemented Interfaces:
ByteBufReader<Long>,ByteBufWriter<Long>,CodecWriter<Long>,TypeConverter<Long>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConvert from a type to the current typeread(io.netty.buffer.ByteBuf buffer) Reads a value from a ByteBuf.longreadPrimitive(io.netty.buffer.ByteBuf buffer) voidWrites an object to a type to a ByteBuf.voidwritePrimitive(io.netty.buffer.ByteBuf buffer, long l) Methods inherited from class com.viaversion.viaversion.api.type.Type
getBaseClass, getOutputClass, getTypeName, toString, write
-
Field Details
-
MAX_UNSIGNED_INT
public static final long MAX_UNSIGNED_INT- See Also:
-
-
Constructor Details
-
UnsignedIntType
public UnsignedIntType()
-
-
Method Details
-
read
Description copied from interface:ByteBufReaderReads a value from a ByteBuf.- Specified by:
readin interfaceByteBufReader<Long>- Parameters:
buffer- buffer to read from- Returns:
- type based on the class type
-
readPrimitive
public long readPrimitive(io.netty.buffer.ByteBuf buffer) -
write
Description copied from interface:ByteBufWriterWrites an object to a type to a ByteBuf.- Specified by:
writein interfaceByteBufWriter<Long>- Parameters:
buffer- buffer to write tol- value to write
-
writePrimitive
public void writePrimitive(io.netty.buffer.ByteBuf buffer, long l) -
from
Description copied from interface:TypeConverterConvert from a type to the current type- Specified by:
fromin interfaceTypeConverter<Long>- Parameters:
o- The input object- Returns:
- The converted type as an object
-