Package io.netty.channel.uring
Class UserData
- java.lang.Object
-
- io.netty.channel.uring.UserData
-
final class UserData extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description privateUserData()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static shortdecodeData(long udata)(package private) static intdecodeId(long udata)(package private) static bytedecodeOp(long udata)(package private) static longencode(int id, byte op, short data)Encode the given data into a long that can be stored as udata.
-
-
-
Method Detail
-
encode
static long encode(int id, byte op, short data)Encode the given data into a long that can be stored as udata. layout 63 32 31 24 23 16 15 0 [ id ][ unused ][ op ][ data ]- Parameters:
id- the id.op- the operationdata- the custom data- Returns:
- the udata.
-
decodeId
static int decodeId(long udata)
-
decodeOp
static byte decodeOp(long udata)
-
decodeData
static short decodeData(long udata)
-
-