Function

GLib-2.0GLibatomic_rc_box_dupSince 2.58

  • Allocates a new block of data with atomic reference counting semantics, and copies block_size bytes of mem_block into it.

    Parameters

    • block_size: number

      the number of bytes to copy, must be greater than 0

    • mem_block: any

      the memory to copy

    Returns any

    a pointer to the allocated memory

    2.58