(w io.Writer, str []byte)
| 159 | } |
| 160 | |
| 161 | func WriteVarstr31(w io.Writer, str []byte) (int, error) { |
| 162 | n, err := WriteVarint31(w, uint64(len(str))) |
| 163 | if err != nil { |
| 164 | return n, err |
| 165 | } |
| 166 | n2, err := w.Write(str) |
| 167 | return n + n2, err |
| 168 | } |
| 169 | |
| 170 | // WriteVarstrList writes a varint31 length prefix followed by the |
| 171 | // elements of l as varstrs. |