Interface ISqlJetMemoryManager
- All Known Implementing Classes:
SqlJetMemoryManager
public interface ISqlJetMemoryManager
Default implementation of SQLJet's memory manager. It allows allocate memory
chunk
ISqlJetMemoryBuffer
.- Author:
- TMate Software Ltd., Sergey Scherbina (sergey.scherbina@gmail.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionallocate
(int size) Allocates memory chunkISqlJetMemoryBuffer
using default buffer type.allocate
(int size, SqlJetMemoryBufferType bufferType) allocatePtr
(int size) Allocates memory chunkISqlJetMemoryBuffer
using default buffer type.allocatePtr
(int size, SqlJetMemoryBufferType bufferType) void
free
(ISqlJetMemoryBuffer buffer) Fries memory.Get buffers implementation type which is used by default.void
setDefaultBufferType
(SqlJetMemoryBufferType bufferType) Get buffers implementation which is used by default.
-
Field Details
-
BYTE_SIZE
static final int BYTE_SIZE- See Also:
-
SHORT_SIZE
static final int SHORT_SIZE- See Also:
-
INT_SIZE
static final int INT_SIZE- See Also:
-
LONG_SIZE
static final int LONG_SIZE- See Also:
-
-
Method Details
-
getDefaultBufferType
SqlJetMemoryBufferType getDefaultBufferType()Get buffers implementation type which is used by default.- Returns:
-
setDefaultBufferType
Get buffers implementation which is used by default.- Parameters:
bufferType
-
-
allocate
Allocates memory chunkISqlJetMemoryBuffer
using default buffer type.- Parameters:
size
- size of buffer in bytes- Returns:
- allocated buffer
-
allocate
- Parameters:
size
-bufferType
-- Returns:
-
allocatePtr
Allocates memory chunkISqlJetMemoryBuffer
using default buffer type.- Parameters:
size
- size of buffer in bytes- Returns:
- allocated buffer
-
allocatePtr
- Parameters:
size
-bufferType
-- Returns:
-
free
Fries memory.- Parameters:
buffer
- buff
-