Variable length string.
Methods
(static) decode(buf) → {Object}
Decode var_str
.
NOTE: rest
references input buffer.
Parameters:
Name | Type | Description |
---|---|---|
buf |
Buffer | A buffer that starts with encoded |
- 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