Class UserData

java.lang.Object
io.netty.channel.uring.UserData

final class UserData extends Object
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static short
    decodeData(long udata)
     
    (package private) static int
    decodeId(long udata)
     
    (package private) static byte
    decodeOp(long udata)
     
    (package private) static long
    encode(int id, byte op, short data)
    Encode the given data into a long that can be stored as udata.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 operation
      data - the custom data
      Returns:
      the udata.
    • decodeId

      static int decodeId(long udata)
    • decodeOp

      static byte decodeOp(long udata)
    • decodeData

      static short decodeData(long udata)