runtime.traceBufHeader.pos (field)
22 uses
runtime (current package)
trace.go#L151: pos int // next write offset in arr
trace.go#L315: if buf.ptr().pos != 0 {
trace.go#L420: return buf.ptr().arr[:buf.ptr().pos]
trace.go#L547: if buf == nil || len(buf.arr)-buf.pos < maxSize {
trace.go#L564: startPos := buf.pos
trace.go#L570: lenp = &buf.arr[buf.pos-1]
trace.go#L581: evSize := buf.pos - startPos
trace.go#L650: bufp.pos = 0
trace.go#L703: if buf == nil || len(buf.arr)-buf.pos < size {
trace.go#L713: if room := len(buf.arr) - buf.pos; room < slen+traceBytesPerNumber {
trace.go#L718: buf.pos += copy(buf.arr[buf.pos:], s[:slen])
trace.go#L735: pos := buf.pos
trace.go#L742: buf.pos = pos
trace.go#L747: buf.arr[buf.pos] = v
trace.go#L748: buf.pos++
trace.go#L869: if buf := bufp.ptr(); len(buf.arr)-buf.pos < size {
trace.go#L875: buf.pos += copy(buf.arr[buf.pos:], tmpbuf)
trace.go#L1224: if room := len(buf.arr) - buf.pos; room < slen+traceBytesPerNumber {
trace.go#L1228: buf.pos += copy(buf.arr[buf.pos:], message[:slen])
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |