File tree Expand file tree Collapse file tree 5 files changed +42
-0
lines changed Expand file tree Collapse file tree 5 files changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ .idea
Original file line number Diff line number Diff line change
1
+ # Big Packing算法的Go实现
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
Original file line number Diff line number Diff line change
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
+ // ------------------------------------------------ ---------------------------------------------------------------------
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 =
You can’t perform that action at this time.
0 commit comments