Files
go-i2p/lib/common/integer.go

12 lines
135 B
Go
Raw Normal View History

2016-02-03 23:55:33 -08:00
package common
import (
"encoding/binary"
)
func Integer(number ...byte) int {
return int(
binary.BigEndian.Uint64(number),
)
}