Files
sqlite3/internal/util/mmap_windows.go
2024-05-17 17:30:43 +01:00

17 lines
331 B
Go

//go:build (amd64 || arm64) && !(sqlite3_noshm || sqlite3_nosys)
package util
import (
"context"
"github.com/tetratelabs/wazero/experimental"
)
type mmapState struct{}
func withAllocator(ctx context.Context) context.Context {
return experimental.WithMemoryAllocator(ctx,
experimental.MemoryAllocatorFunc(newAllocator))
}