MCPcopy Create free account
hub / github.com/araddon/qlbridge / encodeVarintSql

Function encodeVarintSql

rel/sql.pb.go:1441–1449  ·  view source on GitHub ↗
(data []byte, offset int, v uint64)

Source from the content-addressed store, hash-verified

1439 return offset + 4
1440}
1441func encodeVarintSql(data []byte, offset int, v uint64) int {
1442 for v >= 1<<7 {
1443 data[offset] = uint8(v&0x7f | 0x80)
1444 v >>= 7
1445 offset++
1446 }
1447 data[offset] = uint8(v)
1448 return offset + 1
1449}
1450func (m *SqlStatementPb) Size() (n int) {
1451 var l int
1452 _ = l

Callers 9

MarshalToMethod · 0.85
MarshalToMethod · 0.85
MarshalToMethod · 0.85
MarshalToMethod · 0.85
MarshalToMethod · 0.85
MarshalToMethod · 0.85
MarshalToMethod · 0.85
MarshalToMethod · 0.85
MarshalToMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected