From 1c97a490dda8e8b8d3805fa6debccc34f32b540d Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Thu, 12 Jun 2014 09:23:30 -0600 Subject: Add Windows support. This commit adds Windows support to Bolt. Windows memory maps return an address instead of a byte slice so the DB.data field had to be refactored to be a pointer to a large byte array. --- bolt_386.go | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 bolt_386.go (limited to 'bolt_386.go') diff --git a/bolt_386.go b/bolt_386.go new file mode 100644 index 0000000..856f401 --- /dev/null +++ b/bolt_386.go @@ -0,0 +1,4 @@ +package bolt + +// maxMapSize represents the largest mmap size supported by Bolt. +const maxMapSize = 0xFFFFFFF // 256MB -- cgit v1.2.3