public class RakUtils extends Object
| Constructor and Description |
|---|
RakUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
clamp(int value,
int low,
int high) |
static io.netty.channel.DefaultChannelPipeline |
newChannelPipeline(io.netty.channel.Channel channel) |
static int |
powerOfTwoCeiling(int value) |
static InetSocketAddress |
readAddress(io.netty.buffer.ByteBuf buffer) |
static int |
writeAckEntries(io.netty.buffer.ByteBuf buffer,
Queue<IntRange> ackQueue,
int mtu) |
static void |
writeAddress(io.netty.buffer.ByteBuf buffer,
InetSocketAddress address) |
public static io.netty.channel.DefaultChannelPipeline newChannelPipeline(io.netty.channel.Channel channel)
public static InetSocketAddress readAddress(io.netty.buffer.ByteBuf buffer)
public static void writeAddress(io.netty.buffer.ByteBuf buffer,
InetSocketAddress address)
public static int writeAckEntries(io.netty.buffer.ByteBuf buffer,
Queue<IntRange> ackQueue,
int mtu)
public static int clamp(int value,
int low,
int high)
public static int powerOfTwoCeiling(int value)
Copyright © 2018–2023. All rights reserved.