implement key read/writers using io.Read/io.Write

This commit is contained in:
2025-06-02 21:20:32 +01:00
parent 9d0391c43d
commit 08b850e0ea
10 changed files with 457 additions and 834 deletions

10
codec/codec.go Normal file
View File

@@ -0,0 +1,10 @@
package codec
import (
"io"
)
type I interface {
MarshalBinary(w io.Writer)
UnmarshalBinary(r io.Reader) (err error)
}