Camel.memchunk_new
Description: Reference for Camel.memchunk_new

### Function

# Camelmemchunk_new

since: 3.4

#### Declaration [src]

    CamelMemChunk*
    camel_memchunk_new (
      gint atomcount,
      gint atomsize
    )

#### Description [src]

Create a new `CamelMemChunk` header. Memchunks are an efficient way to allocate and deallocate identical sized blocks of memory quickly, and space efficiently.

camel_memchunks are effectively the same as gmemchunks, only faster (much), and they use less memory overhead for housekeeping.

Available since: 3.4

This function is not directly available to language bindings.

#### Parameters

`atomcount`

  Type: `gint`

  The number of atoms stored in a single malloc’d block of memory.

`atomsize`

  Type: `gint`

  The size of each allocation.

#### Return value

Type: `CamelMemChunk`

A new `CamelMemChunk`.

The data is owned by the called function.