WriteString is a faster implementation of Malloc when a string needs to be written. It replaces: var buf, err = Malloc(len(s)) n = copy(buf, s) return n, err The argument string s will be referenced based on the original address and will not be copied, so make sure that the string s will not be ch
(s string)
| 136 | // The argument string s will be referenced based on the original address and will not be copied, |
| 137 | // so make sure that the string s will not be changed. |
| 138 | WriteString(s string) (n int, err error) |
| 139 | |
| 140 | // WriteBinary is a faster implementation of Malloc when a slice needs to be written. |
| 141 | // It replaces: |
no outgoing calls