diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-10 07:32:12 -0700 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-10 07:32:12 -0700 |
commit | df8333328fc7808ad37f7276a115bfd8a00c3780 (patch) | |
tree | c0a8d5597c90023a3f4ccc9a29116624a6276896 /bucket.go | |
parent | Move all C code into repo. (diff) | |
download | dedo-df8333328fc7808ad37f7276a115bfd8a00c3780.tar.gz dedo-df8333328fc7808ad37f7276a115bfd8a00c3780.tar.xz |
DB.Open(), pages, and meta.
Diffstat (limited to 'bucket.go')
-rw-r--r-- | bucket.go | 21 |
1 files changed, 9 insertions, 12 deletions
@@ -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 } |