mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
9 lines
164 B
Go
9 lines
164 B
Go
|
|
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
|
||
|
|
}
|