mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-15 12:50:28 +02:00
loopdb: make new loopdb package to house persistent storage
This commit is contained in:
parent
74cf29a9cf
commit
cdcb9f8345
12 changed files with 589 additions and 442 deletions
8
loopdb/codec.go
Normal file
8
loopdb/codec.go
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
package loopdb
|
||||
|
||||
// itob returns an 8-byte big endian representation of v.
|
||||
func itob(v uint64) []byte {
|
||||
b := make([]byte, 8)
|
||||
byteOrder.PutUint64(b, v)
|
||||
return b
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue