Class UserData
java.lang.Object
io.netty.channel.uring.UserData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(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.
-
Constructor Details
-
UserData
private UserData()
-
-
Method Details
-
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)
-