aboutsummaryrefslogtreecommitdiff
path: root/const.go
diff options
context:
space:
mode:
Diffstat (limited to 'const.go')
-rw-r--r--const.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/const.go b/const.go
index 9ad7d25..00228be 100644
--- a/const.go
+++ b/const.go
@@ -3,6 +3,13 @@ package bolt
const version = 1
const (
+ maxUint = ^uint(0)
+ minUint = 0
+ maxInt = int(^uint(0) >> 1)
+ minInt = -maxInt - 1
+)
+
+const (
// MaxBucketNameSize is the maximum length of a bucket name, in bytes.
MaxBucketNameSize = 255