mirror of
https://github.com/lightninglabs/loop
synced 2024-11-16 00:12:52 +00: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
|
||
|
}
|