DebugPrint dumps the encoded bytes of b with a header and footer including s to stdout. This is only intended for debugging.
(s string, b []byte)
| 130 | // DebugPrint dumps the encoded bytes of b with a header and footer including s |
| 131 | // to stdout. This is only intended for debugging. |
| 132 | func (*Buffer) DebugPrint(s string, b []byte) { |
| 133 | m := MessageReflect(new(unknownFields)) |
| 134 | m.SetUnknown(b) |
| 135 | b, _ = prototext.MarshalOptions{AllowPartial: true, Indent: "\t"}.Marshal(m.Interface()) |
| 136 | fmt.Printf("==== %s ====\n%s==== %s ====\n", s, b, s) |
| 137 | } |
| 138 | |
| 139 | // EncodeVarint appends an unsigned varint encoding to the buffer. |
| 140 | func (b *Buffer) EncodeVarint(v uint64) error { |
nothing calls this directly
no test coverage detected