Skip to content

Commit 54a7c7d

Browse files
committed
init
1 parent 068ff23 commit 54a7c7d

File tree

5 files changed

+42
-0
lines changed

5 files changed

+42
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Big Packing算法的Go实现
2+
3+
4+
5+
6+
7+
8+
9+

bit_packing.go

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package bit_packing
2+
3+
import "github.com/golang-infrastructure/go-gtypes"
4+
5+
// EncodeBoolSlice 把bool数组编码为字节数组
6+
func EncodeBoolSlice(boolSlice []bool) []byte {
7+
8+
}
9+
10+
func DecodeBoolSlice(byteSlice []byte) []bool {
11+
12+
}
13+
14+
// ------------------------------------------------ ---------------------------------------------------------------------
15+
16+
// EncodeIntSliceToBytes 把int类型的数组编码为字节数组
17+
func EncodeIntSliceToBytes[T gtypes.Unsigned](slice []T, byteLength int) []byte {
18+
19+
}
20+
21+
func DecodeIntSliceFromBytes() {
22+
23+
}
24+
25+
// ------------------------------------------------ ---------------------------------------------------------------------

go.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module github.com/compression-algorithm-research-lab/go-bit-packing
2+
3+
go 1.19
4+
5+
require github.com/golang-infrastructure/go-gtypes v0.0.1 // indirect

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github.com/golang-infrastructure/go-gtypes v0.0.1 h1:hnM1OYSwLPLGkZ4C6ecAxgmAUaPTjnhnUtRNmJj4p6c=
2+
github.com/golang-infrastructure/go-gtypes v0.0.1/go.mod h1:vFMCxFzxdMInvTtgLZRlWI1rS+mui88sMbL5I+zu1hg=

0 commit comments

Comments
 (0)