mirror of
https://github.com/go-i2p/go-i2p.git
synced 2025-07-04 05:26:51 -04:00
some godoc
This commit is contained in:
@ -4,6 +4,11 @@ import (
|
||||
"encoding/binary"
|
||||
)
|
||||
|
||||
//
|
||||
// Interpret a slice of bytes from length 1
|
||||
// to length 8 as a big-endian integer and
|
||||
// return an int representation.
|
||||
//
|
||||
func Integer(number []byte) int {
|
||||
num_len := len(number)
|
||||
if num_len < 8 {
|
||||
|
Reference in New Issue
Block a user