PacketUtil

open class PacketUtil

Functions

Link copied to clipboard
open fun getUUIDBytes(uuid: UUID): Array<Byte>
Link copied to clipboard
open fun readBytes(in: ByteArrayDataInput, max: Int): Array<Byte>
Link copied to clipboard
open fun readIntList(in: ByteArrayDataInput): List<Integer>
Link copied to clipboard
open fun <T> readList(@NotNull buffer: @NotNull ByteArrayDataInput, @NotNull serializer: @NotNull PacketSerializer<T>): List<T>
Link copied to clipboard
open fun <T> readNullable(@NotNull buffer: @NotNull ByteArrayDataInput, @NotNull serializer: @NotNull PacketSerializer<T>): @Nullable T
Link copied to clipboard
@Nullable
open fun readNullableString(in: ByteArrayDataInput): @Nullable String
Link copied to clipboard
open fun readSafeInt(in: ByteArrayDataInput, minInt: Int, maxInt: Int): Int
Link copied to clipboard
open fun readUUID(in: ByteArrayDataInput): UUID
Link copied to clipboard
open fun readUUIDList(in: ByteArrayDataInput): List<UUID>
Link copied to clipboard
open fun writeBytes(out: ByteArrayDataOutput, bytes: Array<Byte>)
Link copied to clipboard
open fun writeIntList(out: ByteArrayDataOutput, list: List<Integer>)
Link copied to clipboard
open fun <T> writeList(@NotNull buffer: @NotNull ByteArrayDataOutput, @NotNull serializer: @NotNull PacketSerializer<T>, @NotNull list: @NotNull List<T>)
Link copied to clipboard
open fun <T> writeNullable(@NotNull buffer: @NotNull ByteArrayDataOutput, @NotNull serializer: @NotNull PacketSerializer<T>, @Nullable obj: @Nullable T)
Link copied to clipboard
open fun writeNullableString(out: ByteArrayDataOutput, @Nullable str: @Nullable String)
Link copied to clipboard
open fun writeUUID(out: ByteArrayDataOutput, uuid: UUID)
Link copied to clipboard
open fun writeUUIDList(out: ByteArrayDataOutput, uuids: List<UUID>)