WriteByte is a faster implementation of Malloc when a byte needs to be written. It replaces: var buf, _ = Malloc(1) buf[0] = b
(b byte)
| 155 | // buf[0] = b |
| 156 | // |
| 157 | WriteByte(b byte) (err error) |
| 158 | |
| 159 | // WriteDirect is used to insert an additional slice of data on the current write stream. |
| 160 | // For example, if you plan to execute: |
no outgoing calls