tidb manual_nocgo 源码

  • 2022-09-19
  • 浏览 (499)

tidb manual_nocgo 代码

文件路径:/br/pkg/lightning/manual/manual_nocgo.go

// Copyright 2020 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

//go:build !cgo

package manual

// Provides versions of New and Free when cgo is not available (e.g. cross
// compilation).

// New allocates a slice of size n.
func New(n int) []byte {
	return make([]byte, n)
}

// Free frees the specified slice.
func Free(b []byte) {
}

相关信息

tidb 源码目录

相关文章

tidb allocator 源码

tidb manual 源码

0  赞