(b []byte)
| 293 | } |
| 294 | |
| 295 | func (e *encoder) writeVarNullBytes(b []byte) { |
| 296 | if b == nil { |
| 297 | e.writeVarInt(-1) |
| 298 | } else { |
| 299 | e.writeVarInt(int64(len(b))) |
| 300 | e.Write(b) |
| 301 | } |
| 302 | } |
| 303 | |
| 304 | func (e *encoder) writeCompactNullBytes(b []byte) { |
| 305 | if b == nil { |
no test coverage detected