Home | History | Annotate | Download | only in trace

Lines Matching refs:buf

23 	buf := []byte{typ | nargs<<6}
25 buf = append(buf, 0)
28 buf = appendVarint(buf, a)
31 buf[1] = byte(len(buf) - 2)
33 n, err := w.Write(buf)
34 if n != len(buf) || err != nil {
39 func appendVarint(buf []byte, v uint64) []byte {
41 buf = append(buf, 0x80|byte(v))
43 buf = append(buf, byte(v))
44 return buf