(code byte, n uint16)
| 172 | } |
| 173 | |
| 174 | func (e *Encoder) write2(code byte, n uint16) error { |
| 175 | e.buf = e.buf[:3] |
| 176 | e.buf[0] = code |
| 177 | e.buf[1] = byte(n >> 8) |
| 178 | e.buf[2] = byte(n) |
| 179 | return e.write(e.buf) |
| 180 | } |
| 181 | |
| 182 | func (e *Encoder) write4(code byte, n uint32) error { |
| 183 | e.buf = e.buf[:5] |
no test coverage detected