github.com/pingcap/tidb-lightning@v5.0.0-rc.0.20210428090220-84b649866577+incompatible/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 }