MGE General C Library - Full Internal Documentation
Library of general C functions.
internal.h File Reference

Non-public header file. More...

#include <portability.h>
Include dependency graph for internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEF_BUF_SIZE   256
 Default buffer size. More...
 
#define BUF_UNUSED_DEF_SIZE_MULT   3
 A multiple to be applied to the default buffer size and compared with the amount of free space in the buffer to determine if shrinking is necessary. More...
 
#define BUF_MAX_UNREACH_PERCENT   33
 A percentage to be used for comparing the unreachable area of a buffer to the buffer size to determine if the buffer requires compaction. More...
 
#define DEF_MSG_SIZE   256
 Default message size. More...
 

Detailed Description

Non-public header file.

No distribution required.

Author
Copyright (C) 2018, 2019-2020 Mark Grant

Released under the GPLv3 only.
SPDX-License-Identifier: GPL-3.0

Version
v1.0.3 ==== 29/04/2020

Macro Definition Documentation

◆ BUF_MAX_UNREACH_PERCENT

#define BUF_MAX_UNREACH_PERCENT   33

A percentage to be used for comparing the unreachable area of a buffer to the buffer size to determine if the buffer requires compaction.

A sensible number is probably between 20 and 50.

◆ BUF_UNUSED_DEF_SIZE_MULT

#define BUF_UNUSED_DEF_SIZE_MULT   3

A multiple to be applied to the default buffer size and compared with the amount of free space in the buffer to determine if shrinking is necessary.

◆ DEF_BUF_SIZE

#define DEF_BUF_SIZE   256

Default buffer size.

◆ DEF_MSG_SIZE

#define DEF_MSG_SIZE   256

Default message size.