(s string)
| 256 | } |
| 257 | |
| 258 | func (e *encoder) writeNullString(s string) { |
| 259 | if s == "" { |
| 260 | e.writeInt16(-1) |
| 261 | } else { |
| 262 | e.writeInt16(int16(len(s))) |
| 263 | e.WriteString(s) |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | func (e *encoder) writeCompactNullString(s string) { |
| 268 | if s == "" { |
no test coverage detected