• Call this function for an optimal writing data passing the ByteBuffer already allocated

    Parameters

    • entity: Entity
    • timestamp: number
    • componentId: number
    • data: Uint8Array
    • buf: ByteBuffer

    Returns void