Skip to main content
serialize - v8 - Node documentation
function serialize

Usage in Deno

import { serialize } from "node:v8";
serialize(value: any): Buffer

Uses a DefaultSerializer to serialize value into a buffer.

ERR_BUFFER_TOO_LARGE will be thrown when trying to serialize a huge object which requires buffer larger than buffer.constants.MAX_LENGTH.

Parameters

value: any

Return Type

Buffer