|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISqlJetMemoryManager
Default implementation of SQLJet's memory manager. It allows allocate memory
chunk ISqlJetMemoryBuffer
.
Field Summary | |
---|---|
static int |
BYTE_SIZE
|
static int |
INT_SIZE
|
static int |
LONG_SIZE
|
static int |
SHORT_SIZE
|
Method Summary | |
---|---|
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. |
Field Detail |
---|
static final int BYTE_SIZE
static final int SHORT_SIZE
static final int INT_SIZE
static final int LONG_SIZE
Method Detail |
---|
SqlJetMemoryBufferType getDefaultBufferType()
void setDefaultBufferType(SqlJetMemoryBufferType bufferType)
bufferType
- ISqlJetMemoryBuffer allocate(int size)
ISqlJetMemoryBuffer
using default buffer
type.
size
- size of buffer in bytes
ISqlJetMemoryBuffer allocate(int size, SqlJetMemoryBufferType bufferType)
size
- bufferType
-
ISqlJetMemoryPointer allocatePtr(int size)
ISqlJetMemoryBuffer
using default buffer
type.
size
- size of buffer in bytes
ISqlJetMemoryPointer allocatePtr(int size, SqlJetMemoryBufferType bufferType)
size
- bufferType
-
void free(ISqlJetMemoryBuffer buffer)
buffer
- buff
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |