aboutsummaryrefslogtreecommitdiff
path: root/bucket.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-01-10 07:32:12 -0700
committerBen Johnson <benbjohnson@yahoo.com>2014-01-10 07:32:12 -0700
commitdf8333328fc7808ad37f7276a115bfd8a00c3780 (patch)
treec0a8d5597c90023a3f4ccc9a29116624a6276896 /bucket.go
parentMove all C code into repo. (diff)
downloaddedo-df8333328fc7808ad37f7276a115bfd8a00c3780.tar.gz
dedo-df8333328fc7808ad37f7276a115bfd8a00c3780.tar.xz
DB.Open(), pages, and meta.
Diffstat (limited to 'bucket.go')
-rw-r--r--bucket.go21
1 files changed, 9 insertions, 12 deletions
diff --git a/bucket.go b/bucket.go
index 16f8be3..c1a7d27 100644
--- a/bucket.go
+++ b/bucket.go
@@ -6,16 +6,13 @@ package bolt
// TODO: #define FREE_DBI 0
// TODO: #define MAIN_DBI 1
-type Bucket interface {
-}
-
-type bucket struct {
- pad int
- flags int
- depth int
- branchPageCount int
- leafPageCount int
- overflowPageCount int
- entryCount int
- rootID int
+type Bucket struct {
+ pad uint32
+ flags uint16
+ depth uint16
+ branches pgno
+ leafs pgno
+ overflows pgno
+ entries uint64
+ root pgno
}