mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 21:51:23 +08:00
26 lines
411 B
Go
26 lines
411 B
Go
package buf
|
|
|
|
import (
|
|
"github.com/sagernet/sing/common"
|
|
"github.com/sagernet/sing/common/buf"
|
|
)
|
|
|
|
const BufferSize = buf.BufferSize
|
|
|
|
type Buffer = buf.Buffer
|
|
|
|
var New = buf.New
|
|
var StackNew = buf.StackNew
|
|
var StackNewSize = buf.StackNewSize
|
|
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
|