Show / Hide Table of Contents

Class CoreUtil

Contains general utility functions.

Inheritance
object
CoreUtil
Namespace: TileDB.CSharp
Assembly: TileDB.CSharp.dll
Syntax
public static class CoreUtil

Methods

| Edit this page View Source

ByteOffsetsToElementOffsets(ulong[], DataType)

Convert byte offsets to element offsets

Declaration
public static ulong[] ByteOffsetsToElementOffsets(ulong[] offsets, DataType dataType)
Parameters
Type Name Description
ulong[] offsets
DataType dataType
Returns
Type Description
ulong[]
| Edit this page View Source

ElementOffsetsToByteOffsets(ulong[], DataType)

Convert element offsets to byte offsets.

Declaration
public static ulong[] ElementOffsetsToByteOffsets(ulong[] element_offsets, DataType dataType)
Parameters
Type Name Description
ulong[] element_offsets
DataType dataType
Returns
Type Description
ulong[]
| Edit this page View Source

GetBuildConfiguration()

Returns a string describing the build configuration of the TileDB Embedded binary being used.

Declaration
public static string GetBuildConfiguration()
Returns
Type Description
string
Remarks

This method exposes the tiledb_as_built_dump function of the TileDB Embedded C API.

| Edit this page View Source

GetCoreLibVersion()

Returns the version of the TileDB Embedded binary being used.

Declaration
public static Version GetCoreLibVersion()
Returns
Type Description
Version
| Edit this page View Source

PackStringArray(string[], string)

Pack string array.

Declaration
public static (byte[] data, ulong[] offsets) PackStringArray(string[] strarray, string encodingmethod = "ASCII")
Parameters
Type Name Description
string[] strarray
string encodingmethod
Returns
Type Description
(byte[] data, ulong[] offsets)
| Edit this page View Source

UnPackStringArray(byte[], ulong[], byte[]?, string)

Unpack string array.

Declaration
public static List<string> UnPackStringArray(byte[] data, ulong[] offsets, byte[]? validities = null, string encodingmethod = "ASCII")
Parameters
Type Name Description
byte[] data
ulong[] offsets
byte[] validities
string encodingmethod
Returns
Type Description
List<string>
Exceptions
Type Condition
ArgumentException
  • Edit this page
  • View Source
In this article
Back to top Copyright © 2018-2023 TileDB Inc.