Package org.ldk.util

Class UInt128


  • public class UInt128
    extends Object
    A 5-bit unsigned integer
    • Constructor Detail

      • UInt128

        public UInt128​(byte[] le_bytes)
        Constructs a 128-bit integer from its little-endian representation
      • UInt128

        public UInt128​(long val)
        Constructs a 128-bit integer from a long, ignoring the sign bit
    • Method Detail

      • getLEBytes

        public byte[] getLEBytes()
        Returns:
        The value as 16 little endian bytes
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object