- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for appendParent (0.14 sec)
-
src/vendor/golang.org/x/net/http2/hpack/encode.go
n = 6 } else { n = 4 } dst = appendVarInt(dst, n, i) dst[first] |= encodeTypeByte(indexing, f.Sensitive) return appendHpackString(dst, f.Value) } // appendTableSize appends v, as encoded in "Header Table Size Update" // representation, to dst and returns the extended buffer. func appendTableSize(dst []byte, v uint32) []byte { first := len(dst) dst = appendVarInt(dst, 5, uint64(v)) dst[first] |= 0x20
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 22 17:16:14 UTC 2022 - 7.1K bytes - Viewed (0) -
src/encoding/binary/varint.go
return 0, -(i + 1) // overflow } return x | uint64(b)<<s, i + 1 } x |= uint64(b&0x7f) << s s += 7 } return 0, 0 } // AppendVarint appends the varint-encoded form of x, // as generated by [PutVarint], to buf and returns the extended buffer. func AppendVarint(buf []byte, x int64) []byte { ux := uint64(x) << 1 if x < 0 { ux = ^ux } return AppendUvarint(buf, ux) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 4.8K bytes - Viewed (0) -
src/encoding/binary/varint_test.go
if x != y { t.Errorf("Varint(%d): got %d", x, y) } if n != m { t.Errorf("Varint(%d): got n = %d; want %d", x, m, n) } buf2 := []byte("prefix") buf2 = AppendVarint(buf2, x) if string(buf2) != "prefix"+string(buf[:n]) { t.Errorf("AppendVarint(%d): got %q, want %q", x, buf2, "prefix"+string(buf[:n])) } y, err := ReadVarint(bytes.NewReader(buf)) if err != nil { t.Errorf("ReadVarint(%d): %s", x, err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 16 23:09:19 UTC 2023 - 5.5K bytes - Viewed (0)