bitwise package

The bitwise package is experimental and subject to change at any time.

The bitwise package provides functions for performing bitwise operations on integers. Import the experimental/bitwise package:

import "experimental/bitwise"


This package is deprecated in favor of bitwise.

All integers are 64 bit integers.

Functions prefixed with s operate on signed integers (int). Functions prefixed with u operate on unsigned integers (uint).


Was this page helpful?

Thank you for your feedback!

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.