mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-16 06:01:21 +08:00
19 lines
340 B
Go
19 lines
340 B
Go
|
package obfs
|
||
|
|
||
|
type DummyObfuscator struct{}
|
||
|
|
||
|
func NewDummyObfuscator() *DummyObfuscator {
|
||
|
return &DummyObfuscator{}
|
||
|
}
|
||
|
|
||
|
func (x *DummyObfuscator) Deobfuscate(in []byte, out []byte) int {
|
||
|
if len(out) < len(in) {
|
||
|
return 0
|
||
|
}
|
||
|
return copy(out, in)
|
||
|
}
|
||
|
|
||
|
func (x *DummyObfuscator) Obfuscate(in []byte, out []byte) int {
|
||
|
return copy(out, in)
|
||
|
}
|