strings: builder: write_b()

This commit is contained in:
João Victor Oliveira Couto 2019-12-06 17:02:09 -03:00 committed by Alexander Medvednikov
parent 55f32fc413
commit 5a8c07dcf5
8 changed files with 26 additions and 5 deletions

View file

@ -48,7 +48,7 @@ pub fn encode(data string) string {
* @return the actual size of the decoded data in the buffer.
* NB: this function does NOT allocate new memory, and is suitable for handling very large strings.
*/
pub fn decode_in_buffer(data &string, buffer mut byteptr) int {
pub fn decode_in_buffer(data &string, buffer byteptr) int {
mut padding := 0
if data.ends_with('=') {
if data.ends_with('==') {