Skip to content

Commit

Permalink
fix: markdown formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Xstoudi committed May 17, 2023
1 parent 85c958f commit c19dbc9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3783,14 +3783,16 @@ console.log(bytesWritten);
### `buf.base64urlWrite(string[, offset[, length]])`

* `string` {string} String to write to `buf`.
* `offset` {integer} Number of bytes to skip before starting to write `string`. **Default**: 0.
* `length` {integer} Maximum number of bytes to write. **Default**: `buf.length - offset`.
* `offset` {integer} Number of bytes to skip before starting to write `string`.
**Default**: 0.
* `length` {integer} Maximum number of bytes to write.
**Default**: `buf.length - offset`.
* Returns: {integer} The number of bytes written.

Writes `string` to `buf` at `offset` according to the base64url character encoding
and returns the number of bytes written. If `buf` did not contain enough space
to fit the entire string, only part of `string` will be written. However,
partially encoded characters will not be written.
Writes `string` to `buf` at `offset` according to the base64url character
encoding and returns the number of bytes written. If `buf` did not contain
enough space to fit the entire string, only part of `string` will be written.
However, partially encoded characters will not be written.

In most cases, `buf.write` is preferable, especially if `encoding` is variable.

Expand Down

0 comments on commit c19dbc9

Please sign in to comment.