(b []byte)
| 80 | } |
| 81 | |
| 82 | func (wb *writeBuffer) writeVarBytes(b []byte) { |
| 83 | if b != nil { |
| 84 | wb.writeVarInt(int64(len(b))) |
| 85 | wb.Write(b) |
| 86 | } else { |
| 87 | //-1 is used to indicate nil key |
| 88 | wb.writeVarInt(-1) |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | func (wb *writeBuffer) writeBool(b bool) { |
| 93 | v := int8(0) |
no test coverage detected