mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-06 15:49:35 +03:00
Added new configuration options to query the low-level malloc interface
and to provide memory buffers for scratch, page-cache, and heap memory allocators. (CVS 5231) FossilOrigin-Name: e36201a352f832c97c5c0fcb872c1f094cac03d2
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
*************************************************************************
|
||||
** Internal interface definitions for SQLite.
|
||||
**
|
||||
** @(#) $Id: sqliteInt.h,v 1.712 2008/06/17 17:21:18 danielk1977 Exp $
|
||||
** @(#) $Id: sqliteInt.h,v 1.713 2008/06/18 13:27:47 drh Exp $
|
||||
*/
|
||||
#ifndef _SQLITEINT_H_
|
||||
#define _SQLITEINT_H_
|
||||
@@ -1733,6 +1733,8 @@ typedef struct {
|
||||
|
||||
/*
|
||||
** Structure containing global configuration data for the SQLite library.
|
||||
**
|
||||
** This structure also contains some state information.
|
||||
*/
|
||||
struct Sqlite3Config {
|
||||
int bMemstat; /* True to enable memory status */
|
||||
@@ -1741,9 +1743,14 @@ struct Sqlite3Config {
|
||||
sqlite3_mem_methods m; /* Low-level memory allocation interface */
|
||||
sqlite3_mutex_methods mutex; /* Low-level mutex interface */
|
||||
void *pHeap; /* Heap storage space */
|
||||
sqlite3_int64 nHeap; /* Size of pHeap[] */
|
||||
int mnReq, mxReq; /* Min and max memory request sizes */
|
||||
int nTemp; /* Part of pHeap for temporary allos */
|
||||
int nHeap; /* Size of pHeap[] */
|
||||
int mnReq, mxReq; /* Min and max heap requests sizes */
|
||||
void *pScratch; /* Scratch memory */
|
||||
int szScratch; /* Size of each scratch buffer */
|
||||
int nScratch; /* Number of scratch buffers */
|
||||
void *pPage; /* Page cache memory */
|
||||
int szPage; /* Size of each page in pPage[] */
|
||||
int nPage; /* Number of pages in pPage[] */
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user