Bit64

constructor(lo: Long, hi: Long, incrementBy: Long)

Creates a new Bit64 counter initialized to lo and hi

Throws

when:

  • incrementBy is less than or equal to 0

  • incrementBy is greater than MAX_INCREMENT

  • incrementBy is not a factor of 8

  • incrementBy does not go into Long.MIN_VALUE (i.e. when Long.MIN_VALUE % incrementBy != 0)

  • lo is not a factor of incrementBy


constructor(incrementBy: Long)

Creates a new Bit64 counter initialized to 0L:0L

Throws

when incrementBy is:

  • Less than or equal to 0

  • Greater than MAX_INCREMENT

  • Not a factor of 8

  • Does not go into Long.MIN_VALUE (i.e. when Long.MIN_VALUE % incrementBy != 0)