Packages
Packages > pkg.pkl-lang.org/pkl-pantry/pkl.experimental.net

pkl.experimental.net.u1281.2.1

module pkl.experimental.net.u128

Who was it that said we'd never need more than 64 bits?? Some tasks work best with unsigned 128-bit integers, eg. working with IPv6 addresses. This module implements a UInt128 type composed out of 4 UInts that can handle limited bit-wise and arithmetic operations. NB: this task is a better fit for UInt32, but it cannot be used here as we rely on shifting bits off the significant end and Pkl's implementation doesn't permit this

Module URI:
package://pkg.pkl-lang.org/pkl-pantry/pkl.experimental.net@1.2.1#/u128.pklcontent_copy
Source code:
u128.pkl

Properties(show inherited)

Methods(show inherited)

Classes