(s string)
| 219 | } |
| 220 | |
| 221 | func (enc *Encoder) writeSimpleString(s string) error { |
| 222 | err := enc.writeLength(uint64(len(s))) |
| 223 | if err != nil { |
| 224 | return err |
| 225 | } |
| 226 | return enc.write([]byte(s)) |
| 227 | } |
| 228 | |
| 229 | func (enc *Encoder) tryWriteIntString(s string) (bool, error) { |
| 230 | intVal, ok := isEncodableUint32(s) |
no test coverage detected