Bytes returns the contiguous set of bytes collected so far by Prepend/Append calls. The slice returned by Bytes will be modified by future Clear calls, so if you're planning on clearing this SerializeBuffer, you may want to copy Bytes somewhere safe first.
()
| 85 | // so if you're planning on clearing this SerializeBuffer, you may want to copy |
| 86 | // Bytes somewhere safe first. |
| 87 | Bytes() []byte |
| 88 | // PrependBytes returns a set of bytes which prepends the current bytes in this |
| 89 | // buffer. These bytes start in an indeterminate state, so they should be |
| 90 | // overwritten by the caller. The caller must only call PrependBytes if they |
no outgoing calls