(d *state, s []byte)
| 75 | } |
| 76 | |
| 77 | func encodeString(d *state, s []byte) int { |
| 78 | n := leftEncode(d, uint64(len(s)*8)) |
| 79 | w, _ := d.Write(s) |
| 80 | return n + w |
| 81 | } |
| 82 | |
| 83 | // rightEncode encodes integer in a variable-length encoding |
| 84 | // unambiguously parseable from the end of a string. |