Uses a DefaultSerializer to serialize value into a buffer.
DefaultSerializer
value
ERR_BUFFER_TOO_LARGE will be thrown when trying to serialize a huge object which requires buffer larger than buffer.constants.MAX_LENGTH.
ERR_BUFFER_TOO_LARGE
buffer.constants.MAX_LENGTH
v8.0.0