(s string)
| 265 | } |
| 266 | |
| 267 | func (e *encoder) writeCompactNullString(s string) { |
| 268 | if s == "" { |
| 269 | e.writeUnsignedVarInt(0) |
| 270 | } else { |
| 271 | e.writeUnsignedVarInt(uint64(len(s)) + 1) |
| 272 | e.WriteString(s) |
| 273 | } |
| 274 | } |
| 275 | |
| 276 | func (e *encoder) writeBytes(b []byte) { |
| 277 | e.writeInt32(int32(len(b))) |
no test coverage detected