Interface ISqlJetMemoryManager
- All Known Implementing Classes:
SqlJetMemoryManager
public interface ISqlJetMemoryManager
Default implementation of SQLJet's memory manager. It allows allocate memory
chunk
ISqlJetMemoryBuffer.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionallocate(int size) Allocates memory chunkISqlJetMemoryBufferusing default buffer type.allocate(int size, SqlJetMemoryBufferType bufferType) allocatePtr(int size) Allocates memory chunkISqlJetMemoryBufferusing default buffer type.allocatePtr(int size, SqlJetMemoryBufferType bufferType) voidfree(ISqlJetMemoryBuffer buffer) Fries memory.Get buffers implementation type which is used by default.voidsetDefaultBufferType(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 chunkISqlJetMemoryBufferusing default buffer type.- Parameters:
size- size of buffer in bytes- Returns:
- allocated buffer
-
allocate
- Parameters:
size-bufferType-- Returns:
-
allocatePtr
Allocates memory chunkISqlJetMemoryBufferusing default buffer type.- Parameters:
size- size of buffer in bytes- Returns:
- allocated buffer
-
allocatePtr
- Parameters:
size-bufferType-- Returns:
-
free
Fries memory.- Parameters:
buffer- buff
-