Currently the lib uses int and long only. The specification often uses a lot shorter integer types.
use short where int is specified (currently int)
use int where uint is specified (currently long)
use int where long is specified (currently long)
use long where ulong is specified (currently long)