gitea源码

option.go 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Copyright 2024 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package zstd
  4. import "github.com/klauspost/compress/zstd"
  5. type WriterOption = zstd.EOption
  6. var (
  7. WithEncoderCRC = zstd.WithEncoderCRC
  8. WithEncoderConcurrency = zstd.WithEncoderConcurrency
  9. WithWindowSize = zstd.WithWindowSize
  10. WithEncoderPadding = zstd.WithEncoderPadding
  11. WithEncoderLevel = zstd.WithEncoderLevel
  12. WithZeroFrames = zstd.WithZeroFrames
  13. WithAllLitEntropyCompression = zstd.WithAllLitEntropyCompression
  14. WithNoEntropyCompression = zstd.WithNoEntropyCompression
  15. WithSingleSegment = zstd.WithSingleSegment
  16. WithLowerEncoderMem = zstd.WithLowerEncoderMem
  17. WithEncoderDict = zstd.WithEncoderDict
  18. WithEncoderDictRaw = zstd.WithEncoderDictRaw
  19. )
  20. type EncoderLevel = zstd.EncoderLevel
  21. const (
  22. SpeedFastest EncoderLevel = zstd.SpeedFastest
  23. SpeedDefault EncoderLevel = zstd.SpeedDefault
  24. SpeedBetterCompression EncoderLevel = zstd.SpeedBetterCompression
  25. SpeedBestCompression EncoderLevel = zstd.SpeedBestCompression
  26. )
  27. type ReaderOption = zstd.DOption
  28. var (
  29. WithDecoderLowmem = zstd.WithDecoderLowmem
  30. WithDecoderConcurrency = zstd.WithDecoderConcurrency
  31. WithDecoderMaxMemory = zstd.WithDecoderMaxMemory
  32. WithDecoderDicts = zstd.WithDecoderDicts
  33. WithDecoderDictRaw = zstd.WithDecoderDictRaw
  34. WithDecoderMaxWindow = zstd.WithDecoderMaxWindow
  35. WithDecodeAllCapLimit = zstd.WithDecodeAllCapLimit
  36. WithDecodeBuffersBelow = zstd.WithDecodeBuffersBelow
  37. IgnoreChecksum = zstd.IgnoreChecksum
  38. )