var_str.
Methods
(static) decode(buf) → {Object}
Decode var_str.
Parameters:
Name | Type | Description |
---|---|---|
buf |
Buffer | A buffer that starts with encoded var_str |
- Source:
Returns:
Decoded var_str structure.
- Type
- Object
(static) encode(str) → {Buffer}
Encode string into var_str.
Parameters:
Name | Type | Description |
---|---|---|
str |
string | A string |
- Source:
Returns:
Encoded var_str.
- Type
- Buffer