bbolt/internal/common/bolt_mipsx.go
Benjamin Wang 8f3c534f9a Move MaxMapSize and MaxAllocSize into internal/common
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2025-06-05 15:17:24 +01:00

10 lines
241 B
Go

//go:build mips || mipsle
package common
// MaxMapSize represents the largest mmap size supported by Bolt.
const MaxMapSize = 0x40000000 // 1GB
// MaxAllocSize is the size used when creating array pointers.
const MaxAllocSize = 0xFFFFFFF