mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 09:32:24 -05:00
[chore] migrate oauth2 -> codeberg (#3857)
This commit is contained in:
parent
49c12636c6
commit
8488ac9286
65 changed files with 1677 additions and 1221 deletions
12
vendor/github.com/klauspost/compress/s2/encode_go.go
generated
vendored
12
vendor/github.com/klauspost/compress/s2/encode_go.go
generated
vendored
|
|
@ -21,6 +21,9 @@ func encodeBlock(dst, src []byte) (d int) {
|
|||
if len(src) < minNonLiteralBlockSize {
|
||||
return 0
|
||||
}
|
||||
if len(src) <= 64<<10 {
|
||||
return encodeBlockGo64K(dst, src)
|
||||
}
|
||||
return encodeBlockGo(dst, src)
|
||||
}
|
||||
|
||||
|
|
@ -32,6 +35,9 @@ func encodeBlock(dst, src []byte) (d int) {
|
|||
//
|
||||
// len(dst) >= MaxEncodedLen(len(src))
|
||||
func encodeBlockBetter(dst, src []byte) (d int) {
|
||||
if len(src) <= 64<<10 {
|
||||
return encodeBlockBetterGo64K(dst, src)
|
||||
}
|
||||
return encodeBlockBetterGo(dst, src)
|
||||
}
|
||||
|
||||
|
|
@ -43,6 +49,9 @@ func encodeBlockBetter(dst, src []byte) (d int) {
|
|||
//
|
||||
// len(dst) >= MaxEncodedLen(len(src))
|
||||
func encodeBlockBetterSnappy(dst, src []byte) (d int) {
|
||||
if len(src) <= 64<<10 {
|
||||
return encodeBlockBetterSnappyGo64K(dst, src)
|
||||
}
|
||||
return encodeBlockBetterSnappyGo(dst, src)
|
||||
}
|
||||
|
||||
|
|
@ -57,6 +66,9 @@ func encodeBlockSnappy(dst, src []byte) (d int) {
|
|||
if len(src) < minNonLiteralBlockSize {
|
||||
return 0
|
||||
}
|
||||
if len(src) <= 64<<10 {
|
||||
return encodeBlockSnappyGo64K(dst, src)
|
||||
}
|
||||
return encodeBlockSnappyGo(dst, src)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue