BitWriter writes arbitrary numbers of bits to a byte slice.
| 65 | |
| 66 | // BitWriter writes arbitrary numbers of bits to a byte slice. |
| 67 | type BitWriter struct { |
| 68 | data []byte |
| 69 | pos int |
| 70 | } |
| 71 | |
| 72 | // NewBitWriter creates a BitWriter with the given initial capacity in bytes. |
| 73 | func NewBitWriter(capacity int) *BitWriter { |
nothing calls this directly
no outgoing calls
no test coverage detected