static class
|
DatabaseUtil
|
Default IBlockIndexFormat implementation for boolean values.
public
static
readonly
field
|
BlockIndexFormatBool
|
||
type
|
IBlockIndexFormat<bool>
|
Default IBlockIndexFormat implementation for 32-bit floating point values.
public
static
readonly
field
|
BlockIndexFormatFloat32
|
||
type
|
IBlockIndexFormat<float32>
|
Default IBlockIndexFormat implementation for 64-bit floating point values values.
public
static
readonly
field
|
BlockIndexFormatFloat64
|
||
type
|
IBlockIndexFormat<float64>
|
Default IBlockIndexFormat implementation for 16-bit integer values values.
public
static
readonly
field
|
BlockIndexFormatInt16
|
||
type
|
IBlockIndexFormat<int16>
|
Default IBlockIndexFormat implementation for 32-bit integer values values.
public
static
readonly
field
|
BlockIndexFormatInt32
|
||
type
|
IBlockIndexFormat<int32>
|
Default IBlockIndexFormat implementation for 64-bit integer values values.
public
static
readonly
field
|
BlockIndexFormatInt64
|
||
type
|
IBlockIndexFormat<int64>
|
Default IBlockIndexFormat implementation for 8-bit integer values values.
public
static
readonly
field
|
BlockIndexFormatInt8
|
||
type
|
IBlockIndexFormat<int8>
|
Special block ID value for invalid resp. non-existent blocks.
public
constant
|
InvalidId
=
-1
|
||
type
|
int64
|
Remarks:
Valid
block
IDs
are
greater
than
or
equal
to
0
.
Amount of memory to use for caching nodes of BlockStorage and BlockIndex objects.
public
static
property
|
CacheMemory
{
get
set
}
|
||
type
|
int32
|
||
value
|
|
The
amount
of
cache
memory,
in
megabytes.
The
default
value
is
96 .
|
Remarks:
The node cache is global, i.e. all BlockStorage and BlockIndex objects share it.
Returns the cache object.
[OwnerReturn]
|
||||
public
static
property
|
CacheObject
{
get
}
|
|||
type
|
IDisposable
|
|||
value
|
|
The cache object. |
Remarks:
The cache object is created when needed and disposed when no longer needed. By keeping the returned cache object alive, client code can avoid repeated creations / disposals if only one entity at a time is using the cache.