Struct

GLibStringChunk

Description [src]

struct GStringChunk {
  /* No available fields */
}

An opaque data structure representing String Chunks. It should only be accessed by using the following functions.

Functions

g_string_chunk_new

Creates a new GStringChunk.

Instance methods

g_string_chunk_clear

Frees all strings contained within the GStringChunk. After calling g_string_chunk_clear() it is not safe to access any of the strings which were contained within it.

Available since: 2.14

g_string_chunk_free

Frees all memory allocated by the GStringChunk. After calling g_string_chunk_free() it is not safe to access any of the strings which were contained within it.

g_string_chunk_insert

Adds a copy of string to the GStringChunk. It returns a pointer to the new copy of the string in the GStringChunk. The characters in the string can be changed, if necessary, though you should not change anything after the end of the string.

g_string_chunk_insert_const

Adds a copy of string to the GStringChunk, unless the same string has already been added to the GStringChunk with g_string_chunk_insert_const().

g_string_chunk_insert_len

Adds a copy of the first len bytes of string to the GStringChunk. The copy is nul-terminated.

Available since: 2.4