Your ROOT_URL in app.ini is http://git.slaventius.ru/ but you are visiting http://37.143.12.169/test3k/authPostman/src/commit/24d792e0c8f35d24cf7d8df88d0e33545c4e581c/vendor/github.com/segmentio/kafka-go/protocol/size.go You should set ROOT_URL correctly, otherwise the web may not work correctly.
 
 
 
 

33 lines
596 B

package protocol
import (
"math/bits"
)
func sizeOfVarString(s string) int {
return sizeOfVarInt(int64(len(s))) + len(s)
}
func sizeOfVarNullBytes(b []byte) int {
if b == nil {
return sizeOfVarInt(-1)
}
n := len(b)
return sizeOfVarInt(int64(n)) + n
}
func sizeOfVarNullBytesIface(b Bytes) int {
if b == nil {
return sizeOfVarInt(-1)
}
n := b.Len()
return sizeOfVarInt(int64(n)) + n
}
func sizeOfVarInt(i int64) int {
return sizeOfUnsignedVarInt(uint64((i << 1) ^ (i >> 63))) // zig-zag encoding
}
func sizeOfUnsignedVarInt(i uint64) int {
return (bits.Len64(i|1) + 6) / 7
}