| Conditions | 1 |
| Total Lines | 13 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | // Type definitions for utf8-buffer 1.0.0 |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Write a string of UTF-8 characters to a byte buffer. |
||
| 24 | * @see https://encoding.spec.whatwg.org/#utf-8-encoder |
||
| 25 | * @param {string} str The string to pack. |
||
| 26 | * @param {!Uint8Array|!Array<number>} buffer The buffer to pack the string to. |
||
| 27 | * @param {number=} index The buffer index to start writing. |
||
| 28 | * @return {number} The next index to write in the buffer. |
||
| 29 | */ |
||
| 30 | export function pack( |
||
| 31 | str: string, |
||
| 32 | buffer: Uint8Array|number[], |
||
| 33 | index?: number): number; |
||
| 34 |