throws once data's size (UTF-8 byte length for a string, byte length for a buffer) exceeds the cap
data
throws once
data's size (UTF-8 byte length for a string, byte length for a buffer) exceeds the cap