This hex encodes the binary data and writes the encoded data to the writer.
(w BinaryWriter, data []byte)
| 8 | |
| 9 | // This hex encodes the binary data and writes the encoded data to the writer. |
| 10 | func HexEncodeToWriter(w BinaryWriter, data []byte) { |
| 11 | for _, b := range data { |
| 12 | w.Write(hexMap[b]) |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | func init() { |
| 17 | hexMap = make([][]byte, 256) |