mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 21:51:23 +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)
|
||
|
}
|