• Serialize a Javascript object using a predefined Buffer and index into the buffer, useful when pre-allocating the space for serialization.

    Parameters

    Returns number

    the index pointing to the last written byte in the buffer.