chore/docs: lease building requirement and write build instruction

This commit is contained in:
mzz2017
2023-02-05 10:29:00 +08:00
parent 2560587022
commit 10c0c264b2
7 changed files with 45 additions and 17 deletions

View File

@ -43,8 +43,9 @@ func Ipv6ByteSliceToUint32Array(_ip []byte) (ip [4]uint32) {
}
func Ipv6Uint32ArrayToByteSlice(_ip [4]uint32) (ip []byte) {
ip = make([]byte, 16)
for j := 0; j < 4; j++ {
ip = binary.LittleEndian.AppendUint32(ip, _ip[j])
binary.LittleEndian.PutUint32(ip[j*4:], _ip[j])
}
return ip
}