channeldb+graph/db: move net.Addr encode/decode to graph db package
In preparation for moving the graph related schema structs to the graph package in an upcoming commit, we move these methods to the graph package. The structs we will move make use of these methods but we still import them from channeldb so as to keep the ReadElement and WriteElement helpers working as they do today.
This commit is contained in:
8 files changed
+30
-14
No files matched your search
@@ -0,0 +1,8 @@
|
||||
package graphdb
|
||||
|
||||
import "encoding/binary"
|
||||
|
||||
var (
|
||||
// byteOrder defines the preferred byte order, which is Big Endian.
|
||||
byteOrder = binary.BigEndian
|
||||
)
|
||||
Reference in new issue
Block a user