mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-09-06 09:02:32 +00:00
29 lines
456 B
Go
29 lines
456 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 NewSize = buf.NewSize
|
|
var StackNew = buf.StackNew
|
|
var StackNewSize = buf.StackNewSize
|
|
var With = buf.With
|
|
var As = buf.As
|
|
|
|
var KeepAlive = common.KeepAlive
|
|
|
|
//go:norace
|
|
func Dup[T any](obj T) T {
|
|
return common.Dup(obj)
|
|
}
|
|
|
|
var (
|
|
Must = common.Must
|
|
Error = common.Error
|
|
)
|