Class RntbdUUID


  • public final class RntbdUUID
    extends Object
    • Field Detail

      • EMPTY

        public static final UUID EMPTY
    • Method Detail

      • decode

        public static UUID decode​(byte[] bytes)
        Decode a UUID as serialized by Microsoft APIs like System.Guid.ToByteArray
        Parameters:
        bytes - a byte array containing the serialized UUID to be decoded
        Returns:
        a new UUID
      • decode

        public static UUID decode​(io.netty.buffer.ByteBuf in)
        Decode a UUID as serialized by Microsoft APIs like System.Guid.ToByteArray
        Parameters:
        in - a ByteBuf containing the serialized UUID to be decoded
        Returns:
        a new UUID
      • encode

        public static byte[] encode​(UUID uuid)
        Encodes a UUID as serialized by Microsoft APIs like System.Guid.ToByteArray
        Parameters:
        uuid - a UUID to be encoded
        Returns:
        a new byte array containing the encoded
      • encode

        public static void encode​(UUID uuid,
                                  io.netty.buffer.ByteBuf out)
        Encodes a UUID as serialized by Microsoft APIs like System.Guid.ToByteArray
        Parameters:
        uuid - a UUID to be encoded
        out - an output ByteBuf