From df8333328fc7808ad37f7276a115bfd8a00c3780 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Fri, 10 Jan 2014 07:32:12 -0700 Subject: DB.Open(), pages, and meta. --- bucket.go | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'bucket.go') 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 } -- cgit v1.2.3