Skip to content

@mega-yfue/eufy-sdk / p2pCodec / stringWithLength

Function: stringWithLength()

ts
function stringWithLength(input, chunkLength?): Buffer;

Pad a string into a fixed-width (multiple-of-chunk) zero-filled buffer.

Parameters

input

string

chunkLength?

number = 128

Returns

Buffer

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.