Interface ISqlJetMemoryManager
-
- All Known Implementing Classes:
SqlJetMemoryManager
public interface ISqlJetMemoryManagerDefault implementation of SQLJet's memory manager. It allows allocate memory chunkISqlJetMemoryBuffer.
-
-
Field Summary
Fields Modifier and Type Field Description static intBYTE_SIZEstatic intINT_SIZEstatic intLONG_SIZEstatic intSHORT_SIZE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ISqlJetMemoryBufferallocate(int size)Allocates memory chunkISqlJetMemoryBufferusing default buffer type.ISqlJetMemoryBufferallocate(int size, SqlJetMemoryBufferType bufferType)ISqlJetMemoryPointerallocatePtr(int size)Allocates memory chunkISqlJetMemoryBufferusing default buffer type.ISqlJetMemoryPointerallocatePtr(int size, SqlJetMemoryBufferType bufferType)voidfree(ISqlJetMemoryBuffer buffer)Fries memory.SqlJetMemoryBufferTypegetDefaultBufferType()Get buffers implementation type which is used by default.voidsetDefaultBufferType(SqlJetMemoryBufferType bufferType)Get buffers implementation which is used by default.
-
-
-
Field Detail
-
BYTE_SIZE
static final int BYTE_SIZE
- See Also:
- Constant Field Values
-
SHORT_SIZE
static final int SHORT_SIZE
- See Also:
- Constant Field Values
-
INT_SIZE
static final int INT_SIZE
- See Also:
- Constant Field Values
-
LONG_SIZE
static final int LONG_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefaultBufferType
SqlJetMemoryBufferType getDefaultBufferType()
Get buffers implementation type which is used by default.- Returns:
-
setDefaultBufferType
void setDefaultBufferType(SqlJetMemoryBufferType bufferType)
Get buffers implementation which is used by default.- Parameters:
bufferType-
-
allocate
ISqlJetMemoryBuffer allocate(int size)
Allocates memory chunkISqlJetMemoryBufferusing default buffer type.- Parameters:
size- size of buffer in bytes- Returns:
- allocated buffer
-
allocate
ISqlJetMemoryBuffer allocate(int size, SqlJetMemoryBufferType bufferType)
- Parameters:
size-bufferType-- Returns:
-
allocatePtr
ISqlJetMemoryPointer allocatePtr(int size)
Allocates memory chunkISqlJetMemoryBufferusing default buffer type.- Parameters:
size- size of buffer in bytes- Returns:
- allocated buffer
-
allocatePtr
ISqlJetMemoryPointer allocatePtr(int size, SqlJetMemoryBufferType bufferType)
- Parameters:
size-bufferType-- Returns:
-
free
void free(ISqlJetMemoryBuffer buffer)
Fries memory.- Parameters:
buffer- buff
-
-