github.com/metacubex/mihomo@v1.18.5/common/buf/sing.go (about)

     1  package buf
     2  
     3  import (
     4  	"github.com/sagernet/sing/common"
     5  	"github.com/sagernet/sing/common/buf"
     6  )
     7  
     8  const BufferSize = buf.BufferSize
     9  
    10  type Buffer = buf.Buffer
    11  
    12  var New = buf.New
    13  var NewPacket = buf.NewPacket
    14  var NewSize = buf.NewSize
    15  var With = buf.With
    16  var As = buf.As
    17  
    18  var (
    19  	Must  = common.Must
    20  	Error = common.Error
    21  )