public class SqlJetMemoryManager extends java.lang.Object implements ISqlJetMemoryManager
BYTE_SIZE, INT_SIZE, LONG_SIZE, SHORT_SIZE
Constructor and Description |
---|
SqlJetMemoryManager() |
Modifier and Type | Method and Description |
---|---|
ISqlJetMemoryBuffer |
allocate(int size)
Allocates memory chunk
ISqlJetMemoryBuffer using default buffer
type. |
ISqlJetMemoryBuffer |
allocate(int size,
SqlJetMemoryBufferType bufferType) |
ISqlJetMemoryPointer |
allocatePtr(int size)
Allocates memory chunk
ISqlJetMemoryBuffer using default buffer
type. |
ISqlJetMemoryPointer |
allocatePtr(int size,
SqlJetMemoryBufferType bufferType) |
void |
free(ISqlJetMemoryBuffer buffer)
Fries memory.
|
SqlJetMemoryBufferType |
getDefaultBufferType()
Get buffers implementation type which is used by default.
|
void |
setDefaultBufferType(SqlJetMemoryBufferType bufferType)
Get buffers implementation which is used by default.
|
public SqlJetMemoryBufferType getDefaultBufferType()
ISqlJetMemoryManager
getDefaultBufferType
in interface ISqlJetMemoryManager
public void setDefaultBufferType(SqlJetMemoryBufferType bufferType)
ISqlJetMemoryManager
setDefaultBufferType
in interface ISqlJetMemoryManager
public ISqlJetMemoryPointer allocatePtr(int size)
ISqlJetMemoryManager
ISqlJetMemoryBuffer
using default buffer
type.allocatePtr
in interface ISqlJetMemoryManager
size
- size of buffer in bytespublic ISqlJetMemoryPointer allocatePtr(int size, SqlJetMemoryBufferType bufferType)
allocatePtr
in interface ISqlJetMemoryManager
public ISqlJetMemoryBuffer allocate(int size)
ISqlJetMemoryManager
ISqlJetMemoryBuffer
using default buffer
type.allocate
in interface ISqlJetMemoryManager
size
- size of buffer in bytespublic ISqlJetMemoryBuffer allocate(int size, SqlJetMemoryBufferType bufferType)
allocate
in interface ISqlJetMemoryManager
public void free(ISqlJetMemoryBuffer buffer)
ISqlJetMemoryManager
free
in interface ISqlJetMemoryManager
buffer
- buffCopyright © 2009-2010 TMate Software Ltd. All Rights Reserved.