buffer: DRY string encoding using StringBytes
This also templatizes the Buffer::*Slice functions, and the template function probably cannot be safely used outside of Node. However, it also SHOULD not be used outside of Node, so this is arguably a feature as well as a caveat.
parent
4e8cdddd
Please register or sign in to comment