mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 19:56:51 +08:00
30 lines
431 B
Go
30 lines
431 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
|
|
StackNew = buf.StackNew
|
|
StackNewSize = buf.StackNewSize
|
|
With = buf.With
|
|
)
|
|
|
|
var KeepAlive = common.KeepAlive
|
|
|
|
//go:norace
|
|
func Dup[T any](obj T) T {
|
|
return common.Dup(obj)
|
|
}
|
|
|
|
var (
|
|
Must = common.Must
|
|
Error = common.Error
|
|
)
|