writeWireAndTag writes a wire type and tag (proto field ID) to buf. All proto fields are prefixed with a wire and tag.
(s *compiler.S, buf *codegen.Value, wire uint64, tag serialization.ProtoFieldID)
| 580 | // writeWireAndTag writes a wire type and tag (proto field ID) to buf. |
| 581 | // All proto fields are prefixed with a wire and tag. |
| 582 | func (e *encoder) writeWireAndTag(s *compiler.S, buf *codegen.Value, wire uint64, tag serialization.ProtoFieldID) { |
| 583 | if tag < 1 { |
| 584 | panic(fmt.Sprintf("Illegal tag: %v")) |
| 585 | } |
| 586 | e.writeVarint(s, buf, s.Scalar(wire|(uint64(tag)<<3))) |
| 587 | } |
| 588 | |
| 589 | // writeFixed32 writes a fixed size, 32-bit number to buf. |
| 590 | func (e *encoder) writeFixed32(s *compiler.S, buf, val *codegen.Value) { |
no test coverage detected