github.com/pingcap/br@v5.3.0-alpha.0.20220125034240-ec59c7b6ce30+incompatible/pkg/lightning/manual/manual_nocgo.go (about) 1 // Copyright 2020 The LevelDB-Go and Pebble Authors. All rights reserved. Use 2 // of this source code is governed by a BSD-style license that can be found in 3 // the LICENSE file. 4 5 // +build !cgo 6 7 package manual 8 9 // Provides versions of New and Free when cgo is not available (e.g. cross 10 // compilation). 11 12 // New allocates a slice of size n. 13 func New(n int) []byte { 14 return make([]byte, n) 15 } 16 17 // Free frees the specified slice. 18 func Free(b []byte) { 19 }