(b []byte)
| 302 | } |
| 303 | |
| 304 | func (e *encoder) writeCompactNullBytes(b []byte) { |
| 305 | if b == nil { |
| 306 | e.writeUnsignedVarInt(0) |
| 307 | } else { |
| 308 | e.writeUnsignedVarInt(uint64(len(b)) + 1) |
| 309 | e.Write(b) |
| 310 | } |
| 311 | } |
| 312 | |
| 313 | func (e *encoder) writeNullBytesFrom(b Bytes) error { |
| 314 | if b == nil { |
no test coverage detected