Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CompressedTagLengthV1 is version 1 length of tags CompressedTagLengthV1 int = 12 // CompressedTagLengthV2 is version 2 length of tags CompressedTagLengthV2 int = 4 )
Variables ¶
This section is empty.
Functions ¶
func CompressionTypeToTagLength ¶
func CompressionTypeToTagLength(t CompressionType) int
CompressionTypeToTagLength converts CompressionType to length.
Types ¶
type CompressionType ¶
type CompressionType int
CompressionType defines the compression used.
const ( // CompressionTypeNone implies no compression CompressionTypeNone CompressionType = iota // CompressionTypeV1 is version 1 of compression CompressionTypeV1 // CompressionTypeV2 is version 2 of compression CompressionTypeV2 )
func String2CompressionType ¶
func String2CompressionType(s string) CompressionType
String2CompressionType is a helper to convert string to compression type
Click to show internal directories.
Click to hide internal directories.