- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 108 for varintAt (0.2 sec)
-
src/runtime/tracebuf.go
return len(buf.arr)-buf.pos >= size } // varintAt writes varint v at byte position pos in buf. This always // consumes traceBytesPerNumber bytes. This is intended for when the caller // needs to reserve space for a varint but can't populate it until later. // Use varintReserve to reserve this space. func (buf *traceBuf) varintAt(pos int, v uint64) { for i := 0; i < traceBytesPerNumber; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:47:01 UTC 2024 - 6.8K bytes - Viewed (0) -
src/encoding/binary/varint.go
// format incompatible with a varint encoding for larger numbers (say 128-bit). import ( "errors" "io" ) // MaxVarintLenN is the maximum length of a varint-encoded N-bit integer. const ( MaxVarintLen16 = 3 MaxVarintLen32 = 5 MaxVarintLen64 = 10 ) // AppendUvarint appends the varint-encoded form of x,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 4.8K bytes - Viewed (0) -
test/varinit.go
Rob Pike <******@****.***> 1330044499 +1100
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 00:48:19 UTC 2012 - 509 bytes - Viewed (0) -
src/cmd/internal/gcprog/gcprog.go
func (w *Writer) lit(x byte) { if w.nb == progMaxLiteral { w.flushlit() } w.b[w.nb] = x w.nb++ w.index++ } // varint emits the varint encoding of x. func (w *Writer) varint(x int64) { if x < 0 { panic("gcprog: negative varint") } for x >= 0x80 { w.byte(byte(0x80 | x)) x >>= 7 } w.byte(byte(x)) } // flushlit flushes any pending literal bits.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 7.4K bytes - Viewed (0) -
src/internal/trace/event/event.go
// HasData is true if the event has trailer consisting of a // varint length followed by unencoded bytes of some data. // // An event may not be both a timed event and have data. HasData bool // IsStack indicates that the event represents a complete // stack trace. Specifically, it means that after the arguments // there's a varint length, followed by 4*length varints. Each // group of 4 represents the PC, file ID, func ID, and line number
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 3.4K bytes - Viewed (0) -
src/runtime/pprof/protobuf.go
tmp [16]byte nest int } func (b *protobuf) varint(x uint64) { for x >= 128 { b.data = append(b.data, byte(x)|0x80) x >>= 7 } b.data = append(b.data, byte(x)) } func (b *protobuf) length(tag int, len int) { b.varint(uint64(tag)<<3 | 2) b.varint(uint64(len)) } func (b *protobuf) uint64(tag int, x uint64) { // append varint to b.data b.varint(uint64(tag)<<3 | 0) b.varint(x) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 30 20:09:46 UTC 2022 - 2.5K bytes - Viewed (0) -
src/runtime/tracetype.go
// lots of varint sizes. // // Add 1 because we might also write a traceAllocFreeTypesBatch byte. var flushed bool w, flushed = w.ensure(1 + maxBytes) if flushed { // Annotate the batch as containing types. w.byte(byte(traceAllocFreeTypesBatch)) } // Emit type. w.varint(uint64(node.id)) w.varint(uint64(uintptr(unsafe.Pointer(typ)))) w.varint(uint64(typ.Size()))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 20:31:27 UTC 2024 - 2.3K bytes - Viewed (0) -
src/debug/dwarf/buf.go
b.data = b.data[i+1:] return c, bits } } return 0, 0 } // Unsigned int is just a varint. func (b *buf) uint() uint64 { x, _ := b.varint() return x } // Signed int is a sign-extended varint. func (b *buf) int() int64 { ux, bits := b.varint() x := int64(ux) if x&(1<<(bits-1)) != 0 { x |= -1 << bits } return x } // Address-sized uint.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 21 17:14:08 UTC 2022 - 3.7K bytes - Viewed (0) -
staging/src/k8s.io/api/apps/v1/types.go
// replicas is the number of Pods created by the StatefulSet controller. Replicas int32 `json:"replicas" protobuf:"varint,2,opt,name=replicas"` // readyReplicas is the number of pods created for this StatefulSet with a Ready Condition. ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,3,opt,name=readyReplicas"`
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 23 17:42:49 UTC 2024 - 49.1K bytes - Viewed (0) -
staging/src/k8s.io/api/apps/v1beta2/types.go
// replicas is the number of Pods created by the StatefulSet controller. Replicas int32 `json:"replicas" protobuf:"varint,2,opt,name=replicas"` // readyReplicas is the number of pods created by this StatefulSet controller with a Ready Condition. ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,3,opt,name=readyReplicas"`
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 27 20:06:24 UTC 2023 - 52.2K bytes - Viewed (0)