(buf []byte, v string)
| 772 | } |
| 773 | |
| 774 | func appendBinaryString(buf []byte, v string) []byte { |
| 775 | begin := len(buf) |
| 776 | buf = appendZero(buf, binary.MaxVarintLen64) |
| 777 | lenLen := binary.PutUvarint(buf[begin:], uint64(len(v))) |
| 778 | buf = buf[:len(buf)-binary.MaxVarintLen64+lenLen] |
| 779 | buf = append(buf, v...) |
| 780 | return buf |
| 781 | } |
| 782 | |
| 783 | func appendBinaryOpaque(buf []byte, v Opaque) []byte { |
| 784 | buf = append(buf, v.TypeCode) |
no test coverage detected