Split out heap

This commit is contained in:
Ian Gulliver
2023-12-24 18:03:29 -05:00
parent e8117edf01
commit 0d95420bdf
3 changed files with 11 additions and 5 deletions

View File

@@ -2,11 +2,13 @@ package coding
import (
"bytes"
"github.com/icza/bitio"
"github.com/samber/lo"
"github.com/securemesh/coding/heap"
)
func Encode(h *Heap, msg []byte) []byte {
func Encode(h *heap.Heap, msg []byte) []byte {
buf := &bytes.Buffer{}
w := bitio.NewWriter(buf)