Skip to content

Commit

Permalink
caff: run go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronsor committed Aug 19, 2023
1 parent d3073c6 commit 4dd0f6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions format/caff/caff.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ func decodeCAFF(d *decode.D) any {

var obfsKey int64

obfsU8 := func(d *decode.D) uint64 { return d.U8() ^ uint64(obfsKey & 0xff) }
obfsU32 := func(d *decode.D) uint64 { return d.U32() ^ uint64(obfsKey & 0xffff_ffff) }
obfsU64 := func(d *decode.D) uint64 { return d.U64() ^ uint64(obfsKey<<32 | obfsKey) }
obfsU8 := func(d *decode.D) uint64 { return d.U8() ^ uint64(obfsKey&0xff) }
obfsU32 := func(d *decode.D) uint64 { return d.U32() ^ uint64(obfsKey&0xffff_ffff) }
obfsU64 := func(d *decode.D) uint64 { return d.U64() ^ uint64(obfsKey<<32|obfsKey) }
obfsBool := func(d *decode.D) bool { return obfsU8(d) != 0 }

// "Big Endian Base 128" - LEB128's strange sibling
Expand Down

0 comments on commit 4dd0f6d

Please sign in to comment.