mihomo/common/buf/sing.go

26 lines
411 B
Go
Raw Normal View History

package buf
import (
"github.com/sagernet/sing/common"
"github.com/sagernet/sing/common/buf"
)
2023-02-25 13:12:19 +08:00
const BufferSize = buf.BufferSize
type Buffer = buf.Buffer
2023-02-25 13:12:19 +08:00
var New = buf.New
var StackNew = buf.StackNew
var StackNewSize = buf.StackNewSize
2023-02-25 13:12:19 +08:00
var With = buf.With
var KeepAlive = common.KeepAlive
//go:norace
func Dup[T any](obj T) T {
return common.Dup(obj)
}
var Must = common.Must
var Error = common.Error