We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c062d1d + 506a102 commit 60b2e98Copy full SHA for 60b2e98
1 file changed
alp/alp.go
@@ -66,6 +66,7 @@ func Encode(dst []byte, src []float64) []byte {
66
if cap(dst) < MetadataSize {
67
dst = make([]byte, MetadataSize)
68
}
69
+ dst = dst[:MetadataSize]
70
encodeMetadata(dst, CompressionMetadata{
71
EncodingType: EncodingConstant,
72
Count: int32(len(src)),
0 commit comments