mirror of https://github.com/lightninglabs/loop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
164 B
Go
9 lines
164 B
Go
6 years ago
|
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
|
||
|
}
|