TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class DatabaseUtil in Tinman.Core.Database

static class DatabaseUtil  

Public / Constants

BlockIndexFormatBool

Default IBlockIndexFormat implementation for boolean values.

public static readonly field BlockIndexFormatBool
type IBlockIndexFormat<bool>

BlockIndexFormatFloat32

Default IBlockIndexFormat implementation for 32-bit floating point values.

public static readonly field BlockIndexFormatFloat32
type IBlockIndexFormat<float32>

BlockIndexFormatFloat64

Default IBlockIndexFormat implementation for 64-bit floating point values values.

public static readonly field BlockIndexFormatFloat64
type IBlockIndexFormat<float64>

BlockIndexFormatInt16

Default IBlockIndexFormat implementation for 16-bit integer values values.

public static readonly field BlockIndexFormatInt16
type IBlockIndexFormat<int16>

BlockIndexFormatInt32

Default IBlockIndexFormat implementation for 32-bit integer values values.

public static readonly field BlockIndexFormatInt32
type IBlockIndexFormat<int32>

BlockIndexFormatInt64

Default IBlockIndexFormat implementation for 64-bit integer values values.

public static readonly field BlockIndexFormatInt64
type IBlockIndexFormat<int64>

BlockIndexFormatInt8

Default IBlockIndexFormat implementation for 8-bit integer values values.

public static readonly field BlockIndexFormatInt8
type IBlockIndexFormat<int8>

InvalidId

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.

Public / Attributes

CacheMemory

Amount of memory to use for caching nodes of BlockStorage and BlockIndex objects.

public static property CacheMemory { get set }
type int32
value [>0] 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.

CacheObject

Returns the cache object.

[OwnerReturn]
public static property CacheObject { get }
type IDisposable
value [not-null] 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.